I've got a batch file that calls a vb script. I need the vb script to do stuff and pass back a string. How do I get the string into a variable in the batch file?
VB script example
So you see, I need the vb script to change the value of the %reboot% variable in the batch file. Thoughts?
set reboot=no call vbscript.vbs %computername% if %reboot%==no goto EOF else goto reboot :reboot shutdown -r
Set argsFromBatchFile = Wscript.Arguments 'not the actual code If argsFromBatchFile(0) = computer1 Then reboot="yes" Else reboot="no" End if