Hi
i am looking for batch file which will retrive all the information from folder & subfolder & save the data on excel file
like f:\ >f:\filename.txt but this syntax don't work for sub folders
i will appreciate any help on this
e.g below should be output once i execute batch.
C:\Users\Desktop\Temp\TXT\sample sheet.xls
C:\Users\Desktop\Temp\sample1 sheet.xls
Save a list of files and subfolders
Moderator: DosItHelp
Re: Save a list of files and subfolders
If you only would have a list of the files use the following code:
The option "/s" for any subfolder and the option "/b" only list the file name.
In the Example is "TEST" a subfolder in this folder and "*.txt" the files.
In your Example:
Code: Select all
dir /s /b TEST\*.txt
The option "/s" for any subfolder and the option "/b" only list the file name.
In the Example is "TEST" a subfolder in this folder and "*.txt" the files.
In your Example:
Code: Select all
DIR /s /b C:\Users\Desktop\Temp\*.xls
Re: Save a list of files and subfolders
Hi Trebor68
Thank you so much for help !
Thank you so much for help !