Pocket Plane Group

Friends and Neighbors => Weimer Republic (WeiDU.org) => WeiDU => Topic started by: Argent77 on March 10, 2018, 04:43:29 PM

Title: MOVE does not work with paths containing spaces
Post by: Argent77 on March 10, 2018, 04:43:29 PM
I tried to rename a file in the user directory of an EE game with the MOVE action, but WeiDU failed with an error.

Code: [Select]
// The code:
MOVE ~%USER_DIRECTORY%/some_large_file.dat~ ~%USER_DIRECTORY%/some_large_file.backup~

// The error message:
ERROR: Failure("MOVE [C:\\Users\\user\\Documents\\Baldur's Gate - Enhanced Edition/some_large_file.dat] [C:\\Users\\user\\Documents\\Baldur's Gate - Enhanced Edition/some_large_file.backup]: source and destination can't contain spaces")

Is there a (platform-independent) way to work around this issue?
Title: Re: MOVE does not work with paths containing spaces
Post by: Wisp on March 13, 2018, 02:51:53 PM
The limitation only applies to reversible MOVEs. I don't know why. So if you are okay with the backup being uninstallable, you can just use MOVE +.