Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Even robocopy doesn't work
#3
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...
Reply


Messages In This Thread
Even robocopy doesn't work - by krovit - 08-14-2024, 01:57 PM
RE: Even robocopy doesn't work - by krovit - 08-14-2024, 07:21 PM
RE: Even robocopy doesn't work - by krovit - 08-14-2024, 07:32 PM
RE: Even robocopy doesn't work - by mdijkens - 08-15-2024, 11:36 AM



Users browsing this thread: 1 Guest(s)