Link to home
Start Free TrialLog in
Avatar of BlairBrenner
BlairBrennerFlag for United States of America

asked on

Process All Subfolders And Use Subfolder Name In Batch Process

I have a batch script that processes all files in a folder.  I would like to expand this to process all files in any subfolders and use the subfolder name as an arguement.  Is this possible?

Below is the current script.  I would like to use the subfolder name (XXXX) at this point in the script:
rootfilename=XXXX & "_" & %%f

Thanks in advance,
Blair
Current Script:
cd C:\TTT
FOR %%f in (*.tif) DO "C:\Program Files\EMC Captiva\QuickScan\QuickScn.exe" /open filename=%%f /saveas
path=c:\TTT\Result,profile=Tiff_Pdf,rootfilename=%%f
ASKER CERTIFIED SOLUTION
Avatar of Shift-3
Shift-3
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of BlairBrenner

ASKER

Thanks