Link to home
Start Free TrialLog in
Avatar of elwayisgod
elwayisgodFlag for United States of America

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\EssbaseServer\zero_level_backups\*.txt X:\EssbaseBackup\Daily\Thu\Export /Y /S /E /i

How can I convert it to a 'move'?

ASKER CERTIFIED SOLUTION
Avatar of meagain35
meagain35

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of elwayisgod

ASKER

Cant use robocopy.  Client wont allow it.  Any other way  via DOS or VB?
whats wrong with robocopy? Lol, strange they allow xcopy but not robocopy.

I would use Robocopy /move
Because tbey wont allow it to be installed on production servers.  Its  a  very stringent environment :(
SOLUTION
Avatar of Bill Prew
Bill Prew

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Move actually works, just not with any parameters like /Y or /U etc..... wonder why?
Avatar of Bill Prew
Bill Prew

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
Splitting as both are valid....