![]() | |
| |||||||
| Register | iSpy | Wiki | All Albums | gXboxLive | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Welcome to the FinalGear.com Forums! | |
| This is the place to discuss everything related to Top Gear, Fifth Gear, and more! However, to gain full access to these forums, you will need to register. As a registered member, you will be able to:
All this and much more is available to you absolutely free when you register for an account, so sign up today! If you have any problems with the registration process or logging into your account, you can contact us. Already have an account? Login to the upper-right to hide this message and all advertisements on the forums. | |
| Technology Computers, gadgets and everything else. |
![]() |
| | LinkBack | Thread Tools | Search this Thread |
| | #1 |
| This has been requested quite a few times - how do I list the contents of a folder in a txt file - with the usual response of using a cmd approach. Needed this today again, and since I never exactly remember the command in cmd, I googled once again, but by mistake found something interesting. I think this is by far the most handy approach, hopefully it hasn't been posted before. http://www.theeldergeek.com/file_list_generator.htm Basically you make a bat file, and whenever you right click a folder in windows explorer it gives you a new line with the option to automatically list the contents into a txt file. Screenshot ![]() | |
| | |
| | #2 |
| Very neat find, this will definitely come in handy. | |
| | |
| | #3 |
| Joined: Jun 30th, 2005 Last Online: 04:21 AM Location: NYC Posts: 2,992
Rep Power: 28 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | And for MacOsX and *nix users: $ls /directory/name > contents Will list the contents of /directory/path to a file called contents in the current directory. |
| | |
| | #4 | |
| I just remembered this vbs a friend of mine made a while back. It creates a directory of whatever drives, local or external, on your computer in a text file. Copy this into notepad then save it as a .vbs file. It will save the log in the same folder as the script. Quote:
| ||
| | |
| | #5 |
| Ok I've run into a problem. After making the .bat file and such, the Create File Listing action is now the default for double-click. This of course means that I just keep re-writing the text file instead of opening the folder. Any idea on how to fix this? I don't want to get rid of the action, but I suppose I will if I have to. | |
| | |
| | #6 |
| Banned For Trolling Joined: Jun 12th, 2005 Last Online: November 15th, 2007 Location: A mile high...and then some Posts: 4,809
Car: RX-7, Jeep Cherokee Rep Power: 0 ![]() | for windows, here you go: dir > whatever.txt |
| | |
| | #7 | |
| .sa = bad driver! | Quote:
Code: #!/bin/bash
quoted=$(echo "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" | awk 'BEGIN {FS = "\n" } { printf "\"%s\" ", $1 }' | sed -e s#\"\"##)
listing=$(echo $quoted | sed s/\"\ /\"\\n/g)
IFS=$'\n'
for i in $listing
do
ls $(basename $i \") > "contents of $(basename $i \")"
done
![]()
__________________ "My dog is worried about the economy because Alpo is up to $3.00 a can. That's almost $21.00 in dog money." -Joe Weinstein | |
| | |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| ||||||
| Thread Tools | Search this Thread |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Temporary Internet Files folder | SL65 | Technology | 10 | October 4th, 2006 10:31 AM |
| August Top Gear Magazine Contents | Viper007Bond | Top Gear | 34 | July 13th, 2006 01:30 PM |
| video listing... | fleshbox | Problems | 3 | August 8th, 2005 09:14 AM |
| *NEW* file format and *NEW* file sizes!! | VUK | The Site Itself | 45 | March 31st, 2004 04:06 AM |