Code: (Select All)
o$ = "C:\robocopy"
d$ = "c:\robocopy new"
comando$ = "powershell -Command " + chr$(34) + "ROBOCOPY ' " + o$ + " ' ' " + CHR$(34) + d$ + CHR$(34) + "' /COPY : DAT /E" + chR$(34)
SHELL comando$
SYSTEM
It seems to work this way (specifying that ROBOCOPY is a PowerShell command).
If you open a DOS window and use the normal CMD from the command line, it works without any need for specification (which is why the first version didn't specify anything). In any case, specifying nothing and compiling in QB64 causes the execution to crash the system.
I hope I'm not adding confusion
Hmm! I'm getting lost...