Ok, I could move one or multiple files or folders on the command line in a batch script by a command like
move /y \"%1\" \"D:\mydata\\"
Unfortunately all files/folders are moved regardless if the target files/folders exist or not.
How can I extend the command above so that a prompt appears if the files/folders exists and ask me if I want to overwrite them?
"move" command WITH prompt if target exists?
Moderator: DosItHelp
Re: "move" command WITH prompt if target exists?
Run MOVE /? and read about the difference between options /Y and /-Y.
Steffen
Steffen
Re: "move" command WITH prompt if target exists?
works.
Thank you
Thank you