Hi,
I wonder if anyone can help?
I've got the following vbScript: -
This works fine and launches putty.
However, I need to launch it with some command switches and this has got me stumped. Each time I add these I get an error regardless of where I put the quotes and the number.
Has anyone got any idea how I can add the switches?
Thanks & Regards
I wonder if anyone can help?
I've got the following vbScript: -
Code:
sub shell(cmd)
' Run a command as if you were running from the command line#
dim objShell
Set objShell = WScript.CreateObject( "WScript.Shell" )
objShell.Run(cmd)
Set objShell = Nothing
end sub
shell "C:\Users\Andrew\Downloads\putty\PUTTY.EXE"
This works fine and launches putty.
However, I need to launch it with some command switches and this has got me stumped. Each time I add these I get an error regardless of where I put the quotes and the number.
Has anyone got any idea how I can add the switches?
Thanks & Regards