Question : Copy multiple files from Unix to Windos: VBS

How can i copy multiple folders containing multiple files from unix machine to windows machine. Right now i am using PSCP.exe but it fetches only one file. Any way to get a vbscript to copy multiple folders.

E:\Harden Project>pscp -pw abcd [email protected]:/var/opt/soe/local/h
arden/harden-history/2010-06-23/riochih102 C:\


Answer : Copy multiple files from Unix to Windos: VBS

This code waits for the process to finish before spawning a new one.

Set ArgObj = WScript.Arguments
Set WshShell = CreateObject("WScript.Shell")
For Each strArg in ArgObj
  Set objExec = objWshShell.Exec("pscp -r -pw KornShell321 [email protected]:/var/opt/soe/local/harden/harden-history/"&strArg&  "/* C:\Test_Data")
  Do while objExec.Status=0
    WScript.Sleep 100
Random Solutions  
programming4us programming4us