ajtsystems
IS-IT--Management
Anyone know how to get a variable into a shell command.
I am trying to create a folder in 7zip with the name using the date function.
Here is my code
Set objShell = wscript.createObject("wscript.shell")
strCommand = "7z a -tzip c:\test.zip " & MyTargetFolder & "\"
wscript.echo strCommand
objShell.CurrentDirectory = InstallPath
strRun = objShell.Run(strCommand, 0, True)
Any ideas would be good.
Thanks
James
I am trying to create a folder in 7zip with the name using the date function.
Here is my code
Set objShell = wscript.createObject("wscript.shell")
strCommand = "7z a -tzip c:\test.zip " & MyTargetFolder & "\"
wscript.echo strCommand
objShell.CurrentDirectory = InstallPath
strRun = objShell.Run(strCommand, 0, True)
Any ideas would be good.
Thanks
James