Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > Batch Files

Reply
 
 
Mike Harrison
Guest
Posts: n/a

 
      06-22-2008
For many years I have been using a batch file to back up files later than a
specific date to a temporary directory. I then copy them to an external hard
drive. My new computer has Vista business. I am unable to get the batch file
to work. Would someone please help?

Old version
call xcopy c:\docume~1\mikeha~1\mydocu~1\*.* C:\temp3 /f /d:06-03-2008 /i /s

New version
call xcopy c:\users\mikeh\documents\*.* C:\temp3 /f /d:06-03-2008 /i /s

 
Reply With Quote
 
 
 
 
Rick Rogers
Guest
Posts: n/a

 
      06-22-2008
Hi Mike,

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

--
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

"Mike Harrison" <> wrote in message
news:%...
> For many years I have been using a batch file to back up files later than
> a specific date to a temporary directory. I then copy them to an external
> hard drive. My new computer has Vista business. I am unable to get the
> batch file to work. Would someone please help?
>
> Old version
> call xcopy c:\docume~1\mikeha~1\mydocu~1\*.* C:\temp3 /f /d:06-03-2008 /i
> /s
>
> New version
> call xcopy c:\users\mikeh\documents\*.* C:\temp3 /f /d:06-03-2008 /i /s


 
Reply With Quote
 
Spirit
Guest
Posts: n/a

 
      06-23-2008
Use this free utility instead MUCH easier :

http://www.karenware.com/powertools/ptreplicator.asp

"Mike Harrison" <> wrote in message news:%...
> For many years I have been using a batch file to back up files later than a
> specific date to a temporary directory. I then copy them to an external hard
> drive. My new computer has Vista business. I am unable to get the batch file
> to work. Would someone please help?
>
> Old version
> call xcopy c:\docume~1\mikeha~1\mydocu~1\*.* C:\temp3 /f /d:06-03-2008 /i /s
>
> New version
> call xcopy c:\users\mikeh\documents\*.* C:\temp3 /f /d:06-03-2008 /i /s
>

 
Reply With Quote
 
Synapse Syndrome
Guest
Posts: n/a

 
      06-23-2008
"Rick Rogers" <> wrote in message
news:...
> 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.


 
Reply With Quote
 
Rick Rogers
Guest
Posts: n/a

 
      06-23-2008
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" <> wrote in message
news:...
> "Rick Rogers" <> wrote in message
> news:...
>> 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.
>


 
Reply With Quote
 
Synapse Syndrome
Guest
Posts: n/a

 
      06-23-2008
"Rick Rogers" <> wrote in message
news:%23$$...
> 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.


I don't think it means that - it just means dissaproved in normal English.
It will still work the same, but in the future it will be deleted in later
versions of Windows, and its use is discouraged.

http://en.wikipedia.org/wiki/Deprecated

> 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.


Okay. I remember that you cannot write directly to root, but was not sure
about creating folders on root without elevation.

ss.


 
Reply With Quote
 
Mike Harrison
Guest
Posts: n/a

 
      06-23-2008
I have downloaded as you suggested. It sure looks like an excellent program.
Thank you for the advice.
"Spirit" <> wrote in message
news:...
Use this free utility instead MUCH easier :

http://www.karenware.com/powertools/ptreplicator.asp

"Mike Harrison" <> wrote in message
news:%...
> For many years I have been using a batch file to back up files later than
> a
> specific date to a temporary directory. I then copy them to an external
> hard
> drive. My new computer has Vista business. I am unable to get the batch
> file
> to work. Would someone please help?
>
> Old version
> call xcopy c:\docume~1\mikeha~1\mydocu~1\*.* C:\temp3 /f /d:06-03-2008 /i
> /s
>
> New version
> call xcopy c:\users\mikeh\documents\*.* C:\temp3 /f /d:06-03-2008 /i /s
>


 
Reply With Quote
 
Rick Rogers
Guest
Posts: n/a

 
      06-23-2008
I ran a test using both commands as the OP wrote them and it worked fine in
both cases, but I created the temp2 folder myself from an elevated prompt.
That's why I suspect it may be a permissions issue, but there is still the
possibility that something on the user's system is causing a problem with
xcopy, so that's why I suggested trying robocopy first.

--
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" <> wrote in message
news:...
> "Rick Rogers" <> wrote in message
> news:%23$$...
>> 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.

>
> I don't think it means that - it just means dissaproved in normal English.
> It will still work the same, but in the future it will be deleted in later
> versions of Windows, and its use is discouraged.
>
> http://en.wikipedia.org/wiki/Deprecated
>
>> 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.

>
> Okay. I remember that you cannot write directly to root, but was not sure
> about creating folders on root without elevation.
>
> ss.
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
In Vista, can .wps files be converted to .rtf files as a batch i.e.instead of one at a time? Mike Arnold Windows Vista General Discussion 4 03-20-2008 12:43 PM
Asking permission and batch files Rene Grothmann Windows Vista General Discussion 3 03-06-2008 03:05 PM
UAC and batch files Wildcat Windows Vista General Discussion 3 12-12-2007 09:36 PM
running batch files... maya Windows Vista General Discussion 12 08-23-2007 01:26 AM
Batch renaming of mp3 files RSMBob Windows Vista General Discussion 2 07-01-2007 04:19 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59