Code Comments
Programming Forum and web based access to our favorite programming groups.Hi, I'd like to process all folders, on the C: drive, which contains specific characters in their name. For example, it would search for all folders beginning with the string "Backup_" and process all files included in these folders (recursively). I'd like to perform this from the command line. Ex. of folders that would be processed: c:\My documents\Backup_Images c:\Backup_WorkFiles C:\Documents and Settings\john\Desktop\Backup_Downloads Any ideas?
Post Follow-up to this messagemachnife@yahoo.com (mACKnIFE) wrote in message news:<733e6f06.0410070634.71e0ef@posting.goo gle.com>... > Hi, > > I'd like to process all folders, on the C: drive, which contains > specific characters in their name. For example, it would search for > all folders beginning with the string "Backup_" and process all files > included in these folders (recursively). I'd like to perform this from > the command line. > > Ex. of folders that would be processed: > > c:\My documents\Backup_Images > c:\Backup_WorkFiles > C:\Documents and Settings\john\Desktop\Backup_Downloads > > Any ideas? quoting directly from the help file for the "Listfiles" switch: Listfiles are plain text files contained names of files to process. File names should start at the first column. It is possible to put comments to the listfile after // characters. For example, you may create backup.lst containing the following strings: c:\work\doc\*.txt //backup text documents c:\work\image\*.bmp //backup pictures c:\work\miscand then run: rar a backup @backup.lstYou may specify both usual file names and list files in the same command line. so all you need to do is write a script or a very small program to generate an appropriate text file listing the files wanted.
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.