This trick will help you to know the files and subfolders in a folder.Think of situation where you have a huge database of songs and want to print the list in a file.This trick will help you to do that .
Step1 Open notepad and copy the following code
cd %1
dir /a /b /-p /o:gen >C:\din\myfiles.txt
start notepad C:\din\myfiles.txt
(you can change the above path like d:\hai\mylist.txt)
Save the file with ".bat" extension and save it wherever you want.
In step1 we have written code to copy the file and folder names into a textfile.
Our second step is to make this option available in right click.
Step2 Press win+r to invoke Run dialogue box.Now goto tools-->folder options--> file types
from the register file types, select Folder click on advanced ->new.
In the action box type in the name eg(myfileslist) which u want
to display in rightclick menu.
Now click on browse and select the .bat file created in step1.
Now right click ,select myfileslist it will now show and save the contents of the directory in a txt file.for eg C:\din\myfiles.txt njoy...........
0 comments:
Post a Comment