if anyone could give me a code to access commandline through vbscript.
views:
42answers:
2but can it be used to run certain set of commands rather than just launching an application?
sushant
2010-03-17 09:06:21
if you use it in a loop, yes.
Cheeso
2010-03-17 14:34:38
+1
A:
Put your commands in a .cmd or .bat file and then run that. You could even build the batch file inside your script if it is not static.
MyBatch.cmd
CD C:\a
winzip32.exe -min -a D:\d
MyScript.vbs
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "MyBatch.cmd"
aphoria
2010-03-18 19:56:00