I was chatting with a friend who had a huge music collection and I wanted to know what all he had. This provoked me to make a batch script which would do the job. I did some research online and found out some basics of batch scripts. This is the final thing which I ended up with.
@echo Directory listing will be created at c:\dirList.txt @dir %1 /S > c:\dirList.txt @echo Opening c:\dirList.txt in Notepad @notepad c:\dirList.txt @pause
I think it’s self explanatory. But still, I’ll go ahead and explain.
1. Prints “Directory listing will be created at c:\dirList.txt”
2. dir is a command which will print the list of directories and files. %1 is a variable which will contain the location from where you run this script. /s is a switch for Continue reading Batch Script to Generate File/Folder Listing