Tom's Hardware > Forum > Windows XP > Windows XP General Discussion > How can I save just a-k named files?
Word :    Username :           
 


to make a backup, I want to do this:

robocopy g:\ i:\BU_G /s /xo /purge /xf pagefile*.* /w:1 /r:1

BUT
*only* on files whose names start with 0-9 or a-k


Is there a way in batch files?

Sponsored Links
Register or log in to remove.

Here is an example using Xcopy that you may convert to your robocopy

Open up a text editor and type in the commands. When done save as whatever.Bat. then just click on the bat file. You choose name for "whatever", but need the DOT bat extention.

E:\ = Drive E Root directory. I:\BU_E is where you want it back-uo to
In my example - copy every thing from drive E to Folder BU_E on drive I
For an explaination of the /x - open a dos window and type xcopy /?

xcopy E:\a*.* I:\BU_E /E /S /I /R /Y /D
xcopy E:\B*.* I:\BU_E /E /S /I /R /Y /D
xcopy E:\C*.* I:\BU_E /E /S /I /R /Y /D
ect


Message edited by RetiredChief on 12-19-2008 at 09:53:25 PM
Reply to RetiredChief


Thanks. Found a way to use robocopy and batch files..
Was hoping for an elegant way to not type 36 lines, but seems to work. :)

Reply to dbarton
Tom's Hardware > Forum > Windows XP > Windows XP General Discussion > How can I save just a-k named files?
Go to:

There are 1096 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them