Move command not creating target directories
Posted: Fri Sep 15, 2023 4:01 am
Hi,
I don't use Move very much, but am taking a look at it for a script I'm building. According to the docs, "If you name a destination directory that does not exist, MOVE will create a directory with that name." Either I'm doing it worng, or its not functioning as intended.
I would expect this to create a new folder on misc: called "bar" and move foo.txt into it. However, it actually moves foo.txt to misc: and renames it to bar.
How do I move a file, create a target directory that doesn't exist, and keep the original name?
I don't use Move very much, but am taking a look at it for a script I'm building. According to the docs, "If you name a destination directory that does not exist, MOVE will create a directory with that name." Either I'm doing it worng, or its not functioning as intended.
Code: Select all
move temp:foo.txt to misc:bar
How do I move a file, create a target directory that doesn't exist, and keep the original name?