The Wscript object is installed with the newer versions of IE (5 and above i think), and you can also get an installer to install it seperately if you wish.
Going up to msdn.microsoft.com and doing a search i came up with this snippet to write the regsitry. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/ht ml/wsconmanipulatingsystemregistryprogrammatically.asp if you do some digging you can find a help file full of functions and objects you can create with it. VB is not my forte, but i belive VBScript would go something like this. Set Wscriptshell = CreateObject('wscript.shell') Wscriptshell.run('winvnc -kill', 1, true) <do your registry stuff> Wscriptshell.run('winvnc -run', 1, false) the first param of run is the string to run, this is just like typing it into the command box. the second is how you want the window displayed, 1 is the normal behavior. and the last is if you want the script to stop until the program run returns, true is default, but you want the false for the running of the vnc object. here is a quick link to the msdn main site the should have all the info your need http://msdn.microsoft.com/library/default.asp?url=/nhp/Default.asp?contentid =28001169 write up your program in notepad, and save it with .vbs on the end and you should be good. Just note that some antivirus programs might think it is a virus because it changes the registry and is a vbs file. virus writers love to use vbscript because its easy and all computers can run them. whether it actually detects it is or not, i dont know. Good luck, hope this was enough information. ps. also wscript can read and write the registry. ----- Original Message ----- From: "Chad LaFarge" <[EMAIL PROTECTED]> To: "Everybody" <[EMAIL PROTECTED]> Sent: Wednesday, February 19, 2003 4:19 PM Subject: Re: Batch Files > I like that idea... how would you do that, Paul? > > Could you provide a very short sample script? > > Thank you. > > ----- Original Message ----- > From: "Paul V." <[EMAIL PROTECTED]> > To: "Everybody" <[EMAIL PROTECTED]> > Sent: Wednesday, February 19, 2003 2:43 PM > Subject: Re: Batch Files > > > > When you execute the 'winvnc -run' the batch file sits and waits for the > > program to stop before it will continue on. Since vnc runs indefinitly, then > > the batch file waits indefintily for it to return, its not froze, its just > > the way batch files work. > > > > Wscript will allow for you to run a program keep the script running. Easiest > > way is to write it in vbscript. > > > > Hope that helps > > > > Paul > > ----- Original Message ----- > > From: "Alex Speaks" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Wednesday, February 19, 2003 2:07 PM > > Subject: Batch Files > > > > > > > Heres an interesting problem. I'm writing a script to change the VNC > > > passwords on our windows 2000 workstations every week for security. > > > Unfortunatly for some reason the scripts were freezing before > > > termination every time they ran. I did some rooting around in the code > > > and discovered that the command >winvnc -run works just fine if you > > > type it at a command prompt however if you automate it in any way the > > > process is loaded and winVNC functions just fine, but the batch file > > > halts. any ideas? so far I have tried batch files and .cmd files > > > containing : > > > > > > >call winvnc -run > > > >winvnc -run > > > >cmd /c "winvnc -run" > > > >cmd /c winvnc -run > > > >command /c winvnc -run > > > > > > I've also tried it on several machines. this seems to be the problem on > > > all of them. > > > > > > -AA > > > > > > ======================================= > > > Alexander N. Speaks > > > System administrator - North West Human Services > > > Internal extention : 725 > > > E-mail: [EMAIL PROTECTED] > > > ======================================= > > > _______________________________________________ > > > VNC-List mailing list > > > [EMAIL PROTECTED] > > > http://www.realvnc.com/mailman/listinfo/vnc-list > > _______________________________________________ > > VNC-List mailing list > > [EMAIL PROTECTED] > > http://www.realvnc.com/mailman/listinfo/vnc-list > _______________________________________________ > VNC-List mailing list > [EMAIL PROTECTED] > http://www.realvnc.com/mailman/listinfo/vnc-list _______________________________________________ VNC-List mailing list [EMAIL PROTECTED] http://www.realvnc.com/mailman/listinfo/vnc-list
