One of the DOS Gurus on this board will probably tell you how to modify this batch file to accept parameters for the directory name to be searched and the location and name of the result file.
dir /a /-p /o:gen >filelisting.txt in a .bat file and save it in the Windows folder.
Now Open windows explorer, and chose Tools/folder options/File types tab/Folder/advanced/new to open a new Action box.
In the new actionbos, type in the name you want to appear in the context menu.
Browse to the .bat file and select it in box labeled "Application used to perform action". Click ok and when you right click a folder you will see the what ever you names it has benn added as one of the actions in the Edit field.
Now when I use this on a folder, I see a quick flash , then when i open the folder and double click FileListing.txt, it opens and shows me what is in the folder.
For some reason, which I do not know why, sometimes this does not work. Yep had that happen. But the now it does. Found it does not work on networkee drivers either.
I have the following .bat file (named "yourname.bat"--of course you can name it what you want) in my Send To folder. dir %1>C:\windows\desktop\yourname.txt
cls
Now if you right click on a folder, the drop down menu (in Win98 anyway) should offer "Send To>". Put your cursor on that and the Send To drop down menu should offer "yourname.bat" as one of the choices. Click on that and you will have created a file named yourname.txt on the Desktop with the contents of the folder.
Jim
WIN7 Ultimate SP1 64bit, IE 11, NTFS,
cable, MS Security Essentials, Windows 7 firewall
Train, that's pretty cool, I've done it in NT (View > Options > File Types) but it flashes a screen and then creates the filelisting.txt but doesn't display it.
Also it seems to create a list of the directory you're in an not the one you're right clicking on.
ie If I'm in C: and right click on C:\WinNT it gives me a list of whats in C: ?
It's a bit like the simple thing I do on every machine I work on, create a link to Notepad in the Send To folder so I can just right click on a file and send it to notepad handy for quickly opening a file for viewing it's contents.
Last edited by Nix; February 18th, 2004 at 07:28 PM.
SuperSparks--No question Karen's Directory Printer is a much more powerful tool. Lots of variety in what will be printed.
Printing with it can be put into Send To as well.
Jim
WIN7 Ultimate SP1 64bit, IE 11, NTFS,
cable, MS Security Essentials, Windows 7 firewall
Originally posted by Nix Train, that's pretty cool, I've done it in NT (View > Options > File Types) but it flashes a screen and then creates the filelisting.txt but doesn't display it.
Also it seems to create a list of the directory you're in an not the one you're right clicking on.
ie If I'm in C: and right click on C:\WinNT it gives me a list of whats in C: ?
I find the filelist.txt in the folder I R-clicked and a flash is all I get too. But as I commented, I have one xp system it does not work with
I like "Karen's Directory Printer " also, used the heck out of it in 98.
the list will be generated and displayed at the bottom of the open Notepad window as filelisting.txt
should probably read
the list will be generated and displayed at the bottom of the open Explorer window as filelisting.txt
as this is what happens when you have the folders and files listed in detail mode.
Secondly I was under the impression that if I was in C:\Windows and right clicked on C:\Windows\System it would list what is in C:\Windows\System. As it was listing what's in C:\Windows I thought I must have made an error. However close inpsection of the screen shot
shows that the highlighted folder is called Sample Music, but the list of files shown in
is in fact the same as those listed in the first screen shot so it actaully does list the files and folders in the current directory and not the one being right clicked on.