Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Windows command line arguments - problems with " and \ #464
rclone copy -v --log-file=logfile.txt "F:" "remote:Windows Fat"
doesn't work at all, error makes no sense and for some reason rclone creates new folders inside it's own folder named Fat and Fat_
I very clumsily moved every single file from the F drive into a subfolder of F:\ called F and then the transfer copy command worked
I tried this in 1.27 and 1.29
oh in case it wasn't clear "Fat" is what I named the drive because it's in fat32 because I used it a long time ago. I'm not sure if that matters.
I think you must have written this originally
In the pastebin the first line is
indicating that Windows thought rclone was being run with two arguments
So I think this is caused by oddities in the windows command line parser as Klaus suggested, so
Should fix it
This is caused ultimately by CommandLineToArgvW which states:
CommandLineToArgvW has a special interpretation of backslash characters when they are followed by a quotation mark character ("), as follows:
The original command line had a mis-matched quote