Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21846

Syntaxt error - need help please

$
0
0
Hello,

I found a site that has code for turning off a virtual machine. I get a syntax error when trying to compile on the objVM.Turnoff(). How can I code this to work? I took it right from the website.

Thanks!

Code:

On Error Resume Next
 
Set objVS = CreateObject("VirtualServer.Application")
Set objVM = objVS.FindVirtualMachine("Windows 2000 Server")
 
objVM.Turnoff()


Viewing all articles
Browse latest Browse all 21846

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>