Sign in with
Sign up | Sign in
Your question

How can I save just a-k named files?

Tags:
  • Backup
  • Pagefile
  • Windows XP
Last response: in Windows XP
Share
December 19, 2008 5:21:23 PM


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?

More about : save named files

December 19, 2008 6:51:21 PM

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
December 19, 2008 9:28:27 PM


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. :) 
Related resources
!