3 replies
Hi,
Not directly. But from a command prompt type
dir > log.txt
...which will give all but "type" as seen in the Windows explorer.
Cheers,
Tim.
by br_kunde
Thanks, Tim
Could you help me write a script or batch file which
could be ran by a mouse clicK or a short-cut ?
This would solve my question.
I?m adict of graphic interfaces...but unable to create them.
Hi,
You can create a text file CreateListing.txt using notepad with the line...
dir > temp.txt
Then rename the text file to be CreateListing.bat
That turns it into an executable script file.
Then move the New .bat file into the windows directory. This puts it in the path to be found by windows when it needs to run.
Finally create a shortcut of the CreateListing.bat file and move that into your sendto menu. You do that by moving the shortcut into the sendto folder in the windows directory (If you're on Win98).
Now you should be able to rightclick over a folder in the explorer, choose sendto and pick your CreateListing.bat file. It will produce the required listing in the folder.
There are other things you can do to make the listing produced be sent to another directory...
For example instead do...
dir > C:\Mylistings\temp.txt
Will send the listing file to the subdirectory Mylistings off the C drive. You need to create this directory first... and if you'rereally keen you can add more to the script file for instance to name the temporary list file by the folder name you're listing rather than temp.txt
If you want to do anything tricky, then take a look at the dos commands and scripting methods at...
http://www.maem.umr.edu/~batch/batchtoc.htm
(remove spaces from above URL)
Cheers,
Tim.
This discussion is closed to new replies.
Trending Windows Forum posts
Sort by Trending