For Programmers: Free Programming Magazines  


Home > Archive > Compression > October 2004 > WinRar-Process all folders containing specific characters in name









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author WinRar-Process all folders containing specific characters in name
mACKnIFE

2004-10-07, 3:55 pm

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

2004-10-07, 8:55 pm

machnife@yahoo.com (mACKnIFE) wrote in message news:<733e6f06.0410070634.71e0ef@posting.google.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.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com