vickspills
Programmer
Can somebody help me with this. I am trying to run a command prompt commands using vbscript. I am trying to use parameter but not sure why I am not able to run this.
strfolder= Wscript.Arguments.Item(0)
Set oShell = CreateObject ("WScript.Shell")
oShell.run ""&strFolder&""
The value I am trying to pass is:
strfolder= cmd.exe /C copy c:\folderA\Sourcefile.csv c:\folderB\Destination.csv
strfolder= Wscript.Arguments.Item(0)
Set oShell = CreateObject ("WScript.Shell")
oShell.run ""&strFolder&""
The value I am trying to pass is:
strfolder= cmd.exe /C copy c:\folderA\Sourcefile.csv c:\folderB\Destination.csv