06-05-2013 09:18 AM
I am a bit confused on how to tell CMD.Exe to copy certain files.
Goal, I want to copy
.VBS
.URI
.TDR
from V:\ drive >>> to D:\ drive
I do want to have to call 3 different CMD boxes to complete this but I will. Is there any way to do it?
Call
ExtProgram("cmd.exe","/c xcopy V:\test\Technical_Information\DIAdem_Scripts\*.vbs D:\\Technical_Information\DIAdem_Scripts\ /y /d /c /i /s")
06-05-2013 09:37 AM
Is it possible for you to use the DIAdem command FileCopy for this?
Greetings
Walter
06-05-2013 09:57 AM
Would it work if you are pulling files from a Server ?
06-05-2013 10:57 AM
The problem I have found with FileCopy cmd is that it copies everything but with the xcopy in CMD.exe I can use the /d switch to help with speed of download.
Can FileCopy do that ?
06-06-2013 12:46 AM
Not with one command, but DIAdem supports several file handle commands like FileDateGet or FileAttrCheck (please have a look at the DIAdem help). With that you can check whether to copy a file or not.
Greetings
Walter