Author Topic: MOVE does not work with paths containing spaces  (Read 272 times)

Offline Argent77

  • Planewalker
  • *****
  • Posts: 165
MOVE does not work with paths containing spaces
« 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?

Offline Wisp

  • Moderator
  • Planewalker
  • *****
  • Posts: 986
Re: MOVE does not work with paths containing spaces
« Reply #1 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 +.

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?: