Login | |
|
 |
RE: Robocopy does not run with variable??? - 9/6/2005 1:40:40 AM
|
|
 |
|
| |
ebgreen
Posts: 5069
Score: 31
Joined: 7/12/2005
Status: online
|
Use WScript.Echo to print the value of strCmd to the command window then copy and paste it here.
|
|
| |
|
|
|
 |
RE: Robocopy does not run with variable??? - 9/6/2005 2:04:14 AM
|
|
 |
|
| |
ebgreen
Posts: 5069
Score: 31
Joined: 7/12/2005
Status: online
|
I can't see that image. That is why I suggested using WScript.Echo so that you could paste the text here.
|
|
| |
|
|
|
 |
RE: Robocopy does not run with variable??? - 9/6/2005 2:52:35 AM
|
|
 |
|
| |
ebgreen
Posts: 5069
Score: 31
Joined: 7/12/2005
Status: online
|
Well, if you only need robocopy to log to the file, then using a redirect ('>') in the command line will cause the file to be created. If however you plan to log to the file from the vbscript before you let robocopy write to it, then you do need to close it before the command line call. You could also look at the Logger class that I posted in the Post A Script section. It always closes the file after a write, so you should never have a file left stranded open.
|
|
| |
|
|
|
|
|