elwayisgod
asked on
XCOPY - I try and use 'Move' and it fails. Exact same command works with 'Xcopy'
Hi,
I'm trying to move all *.txt files in a directory to another directory. When I use the 'move' command it fails. When I use 'xcopy' it copies them and then I have to go back and delete the files from the source directory. Would like to just 'move' them if possible. Here is my 'xcopy' command:
xcopy E:\apps\Hyperion\products\ Essbase\Es sbaseServe r\zero_lev el_backups \*.txt X:\EssbaseBackup\Daily\Thu \Export /Y /S /E /i
How can I convert it to a 'move'?
I'm trying to move all *.txt files in a directory to another directory. When I use the 'move' command it fails. When I use 'xcopy' it copies them and then I have to go back and delete the files from the source directory. Would like to just 'move' them if possible. Here is my 'xcopy' command:
xcopy E:\apps\Hyperion\products\
How can I convert it to a 'move'?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
whats wrong with robocopy? Lol, strange they allow xcopy but not robocopy.
I would use Robocopy /move
I would use Robocopy /move
ASKER
Because tbey wont allow it to be installed on production servers. Its a very stringent environment :(
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Move actually works, just not with any parameters like /Y or /U etc..... wonder why?
Right, MOVE is a valid command, but it does not have a subdirectory option like some commands (like xcopy and del do). You can see the options via MOVE /?
Who can say why it doesn't have that option, but sadly it doesn't.
~bp
Who can say why it doesn't have that option, but sadly it doesn't.
~bp
ASKER
Splitting as both are valid....
ASKER