
List Files In Directory
Started by
spaztastic
, Jun 09 2008 04:05 AM
#1
Posted 09 June 2008 - 04:05 AM

#2
Posted 09 June 2008 - 07:10 AM

This batch file should work. It will create a list of the folders in folderlist.txt and then open it in notepad.
So if the folder you wanted to look in was C:\program files, then you would use this batch file:
In order to create and run a batch file:
dir /a:d /b "Full path to folder"> folderlist.txt notepad folderlist.txt
So if the folder you wanted to look in was C:\program files, then you would use this batch file:
dir /a:d /b "C:\program files"> folderlist.txt notepad folderlist.txt
In order to create and run a batch file:
- Open a new notepad window (Start>All Programs>Accessories>Notepad)
- Copy & paste the contents of the following codebox into the notepad window
insert text of batch file here
- Click File > Save as
- In the box labelled File name copy and paste cleanup.bat
- Change Save as type to All Files
- Save it to your desktop
- Close the notepad window
- Double click on cleanup.bat
- A DOS window will come up briefly and then disappear, this is normal
Similar Topics
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users
As Featured On:






