PDA

View Full Version : Select All Files and Run A Batch



Lacuna
June 28th, 2006, 07:44 AM
Hi,

I can't figure out a way to have all of the .conf files in my folder used in a batch file.

On a daily basis, I need the batch file to find all of the .conf in a particular folder and run a perl script on them...I can set up the scheduled task however I've had to type in all of the .conf file names manually.

Does anyone know how to get a script to select all the files of a particular extention?

I would be very grateful!!

~ Lacuna :love:

bwh2
June 28th, 2006, 10:29 AM
mmm. perl. me likey perl.

let's do this. wait, one question: do you want this to be recursive?

Lacuna
June 28th, 2006, 01:02 PM
sorry, how do you mean? :h:

bwh2
June 28th, 2006, 03:35 PM
i mean if you have subdirectories, do you need it to traverse through those. so if you have:

Folder1
--Folder1a
--Folder1b
----Folder1bi
----Folder1bii
Folder2if you point it at Folder1, do you need it to drill down through sub directories like Folder1bii? or do you just want it to look at Folder1, no subdirectories?

Lacuna
June 29th, 2006, 05:13 PM
i mean if you have subdirectories, do you need it to traverse through those. so if you have:

Folder1
--Folder1a
--Folder1b
----Folder1bi
----Folder1bii
Folder2if you point it at Folder1, do you need it to drill down through sub directories like Folder1bii? or do you just want it to look at Folder1, no subdirectories?

ahh, i see.

No subdirectories then. i just need it for the folder1.

~ Lacuna :love: