Forum Moderators: open
move [{/y¦/-y}] [Source] [target]
You could use the /-y switch to force the script to prompt you when overwriting existing files.
It might be easier to use something like xCopy [technet.microsoft.com] to get the files to the new location and then to delete the files from the old location.
but how to I call a php script from the dos shell and also, how does output work when you do something like that.
Using PHP from the command line [php.net]
I know how to use xCopy, but what is the switch to not overwrite file within that command.
It actually gets a bit more complicated, but you can use the /l switch to list the files to be copied and then run a for...next loop to only copy the file names that don't exist.
A better option than xCopy might be Robocopy [technet.microsoft.com], but it may not be available natively on your platform.