Re: Batch Files



Hi,

Run xcopy /? from a command prompt, you'll get:

NOTE: Xcopy is now deprecated, please use Robocopy.

Meaning it exists, but may not function correctly. If he created the temp3 folder, he should have full control on it and be able to write/alter files there. However, if the folder was copied from a different installation, he may need to alter permissions.

--
Best of Luck,

Rick Rogers, aka "Nutcase" - Microsoft MVP
http://mvp.support.microsoft.com/
Windows help - www.rickrogers.org
My thoughts http://rick-mvp.blogspot.com

"Synapse Syndrome" <synapse@xxxxxxxxxxxxxxxxxxxx> wrote in message news:uzZhxXN1IHA.5728@xxxxxxxxxxxxxxxxxxxxxxx
"Rick Rogers" <rick@xxxxxxxx> wrote in message news:e7PmeOM1IHA.4492@xxxxxxxxxxxxxxxxxxxxxxx
Hi Mike,

The command xcopy was replaced with robocopy, alter your batch accordingly and see if this helps.


ROBOCOPY has been added as standard in Vista, rather than you having to add it from the Resource Kit, but XCOPY is still in Vista, IIRC.

I think the reason for his script is not working is due to UAC not allowing writes to the C: root? I can't test right now, but maybe the new folder cannot be created by the command unless in an elevated prompt?

I agree he should convert to using ROBOCOPY instead though, as it has much better features.

ss.


.



Relevant Pages

  • Re: Backup a file on a workstation and then shut down
    ... xcopy won't use shadow copy techniques. ... Why not open a Command Prompt and type xcopy /? ...
    (microsoft.public.scripting.wsh)
  • Re: Problem during copy very long file names
    ... robocopy /MIR is the command. ... robocopy than xcopy. ... The problem is that Windows ...
    (microsoft.public.windows.server.general)
  • Re: Batch File Problem
    ... >> batch file is using xcopy and the manual copy used copy. ... >There is no difference between running a command from the ... >Command Prompt or running it inside a batch file. ...
    (microsoft.public.windowsxp.general)
  • Re: Read Only
    ... Start -> All Programs -> Accessories - Command Prompt ... 'attrib' without any parameters will display a directory list of the files in the current directory and what attributes they have set. ... For more information about archive attributes and xcopy, ...
    (microsoft.public.windowsxp.general)
  • Re: Utility to copy files
    ... Xcopy. ... It can contimue on error. ... > win explorer and also robocopy via command prompt and it will stop the ...
    (microsoft.public.windowsxp.general)