Even robocopy doesn't work - Printable Version +- QB64 Phoenix Edition (https://qb64phoenix.com/forum) +-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1) +--- Forum: Code and Stuff (https://qb64phoenix.com/forum/forumdisplay.php?fid=3) +---- Forum: Help Me! (https://qb64phoenix.com/forum/forumdisplay.php?fid=10) +---- Thread: Even robocopy doesn't work (/showthread.php?tid=2941) |
Even robocopy doesn't work - krovit - 08-14-2024 I don't want to seem picky, but... even ROBOCOPY from versions later than 3.12 doesn't work. The program replicates itself infinitely, and if you are not quick to force it to close with CTRL+ALT+DELETE, the system freezes and then crashes. To be honest... even in version 3.12, the command behaves strangely: it doesn't work 20 times (just to say it seems random) and then it works once. ROBOCOPY is an important command; I will try to compile the executable with version 1.5... I have nothing left: I've tried everything! Perhaps the problem encountered with the manipulation of the system dates is just the tip of the iceberg. Maybe it has to do with how QB64 connects, through SHELL, with the operating system commands. In c:\robocopy there are some files that I would like to copy to c:\robocopy new while preserving the attributes. The syntax is designed to allow for the handling of paths with empty spaces. note: There are no spaces between COPY : DAT: I have to write it this way because the editor that formats the code writes COPYATÂ !! Code: (Select All)
RE: Even robocopy doesn't work - krovit - 08-14-2024 Maybe it depends on me not knowing the right syntax! I wouldn't want to spread unjustified alarms... certainly, something also depends on the syntax of the POWERSHELL commands (which is really complex) and ROBOCOPY to be inserted in the SHELL... but the behaviors of the produced executables are bizarre. And above all: why do they work in one version of QB64 and crash the system in another ? RE: Even robocopy doesn't work - krovit - 08-14-2024 Code: (Select All)
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... RE: Even robocopy doesn't work - mdijkens - 08-15-2024 In these situations, it sometimes helps to use 'cmd /c' in front: SHELL "cmd /c " + comando$ |