View Full Version : Free Program That Are Able To Make A Info Txt File
Petter1979
27-12-2004, 10:01 AM
Well im gonna try explain the program im seeking, Im seeking a free program that can automatically make a infotxt about contents in a directory or a future cd.
I download a few games, patches, manuals from here, and i want to burn those files onto a cd, but i want to be able to have a good overview on whats on the cd.
ex. i make a directory called newCD. And i want the program to type a file list txt of all the files in that directory.
It could look something like this:
/Games Windows/Ufo/UFO - Enemy Unknown.zip
/Patches and ect/Ufo/XcomUTIL 9.6 beta/xcubeta.zip
and so on, anyone know of such program? :blink: :help:
Kon-Tiki
27-12-2004, 10:04 AM
Nope, but a program like that's fingerpractice in a scripting language. I'd write one for you, but I can't code in any decent scripting language (yet) and wouldn't know how to read the contents of a directory and turn each result into a string in any language I do know.
dir /s > blah.txt
dir /v > blah.txt
one of the 2 I don't recall it correctly
Kon-Tiki
27-12-2004, 03:48 PM
Simple .bat-file then, if you're lazy :D
Just tested /s and /v. /s is recursive, while /v only shows the contents of the current folder.
Petter1979
27-12-2004, 04:44 PM
wow nice :)
didnt knew it would be this easy, Thanks Data :ok:
Unknown Hero
28-12-2004, 01:17 AM
Originally posted by Kon-Tiki@Dec 27 2004, 05:48 PM
Simple .bat-file then, if you're lazy :D
Just tested /s and /v. /s is recursive, while /v only shows the contents of the current folder.
Where should I write those lines??? :blink:
I don't get it! :tomato:
Kon-Tiki
28-12-2004, 01:34 AM
Make a .txt-file and put this in it:
@Echo off
Dir /s > Index.txt
Save the file, then rename it to whatever you want.bat <---- Don't forget this. Change the .txt to .bat. The icon should change when you've done that. Running the file'll make a file called Index.txt with the listing of all files and folders, and all contents of the subfolders.
Eagle of Fire
28-12-2004, 04:07 AM
Or, in old DOS commands, just type "edit blabla.bat" and write those 2 lines there.
And voila! :)
Tuttle
28-12-2004, 06:45 AM
dir /s /b is probably a better choice than just dir /s. The /b means it'll list pathnames only, without all the table headers and footers and stuff.
Petter1979
28-12-2004, 09:57 AM
I researched a bit more about dos commands, and i have found some good switches to add.
The command i like the most now is:
DIR /S /A:A /D /O:G > blah.txt
Petter1979
28-12-2004, 09:59 AM
hehe made around 15 tests, with diffrent switches.
well I knew there were better combo's but I was glad I could point a possible direction that doesn't require much effort.
Petter1979
28-12-2004, 11:37 AM
Yeah thanks Data for the original idea :)
Kon-Tiki
28-12-2004, 12:03 PM
What's the /A:A /D /O:G do?
Titan
28-12-2004, 01:03 PM
"Dir /?" perhaps?
Kon-Tiki
28-12-2004, 03:24 PM
Meh, too lazy :bleh:
Unknown Hero
28-12-2004, 05:34 PM
Can someone explaind order by order what does it mean!?!?!?!?
/s?
/v?
/a?
/$&$//"#$/$")=(/"=!%/)???
@Kon-Tiki
Thanks, I got it! :tnx:
Eagle of Fire
28-12-2004, 11:04 PM
DIR [DRIVE:][PATH][NAME OF FILE] [/A[[:]ATTRIBUTE]] [/B] [/C] [/D] [/L] [/N] [/O[[:]SORT]] [/P] [/Q] [/S] [/T[[:]TIME]] [/W] [/X] [/4]
* * [DRIVE:][PATH][NAME OF FILE]
* * * * *Selection of a specific drive, directory or file to be listed
* * /A * * Shows the files which attribute are specified.
* * * * *attributes * * D * * Directory * * R * * Read Only
* * * * * * * * * * * * H * * Hidden * * * *A * * Archive
* * * * * * * * * * * * S * * System * * * *- * * Negation prefix
DOS used those attribute flags to know which files were what. For example, an hidden file would not be see under the normal DIR command. Read only could not be overwritten, and files with the Directory flag were directories. The negation prefixe helped sort the files which were NOT the specified attribute.
* * /B * * Use the shortened format (only file names).
* * /C * * Use the thousands comma when showing the files size. This is on by
* * * * * * * * default, use /-C to deactivate this option.
* * /D * * Shows the files on 5 columns, all sorted by columns.
This is extremely usefull. Instead of showing the related informations of each files on only one column, DIR will show you all the files it can in one screen in several columns. Extremely powerfull with /P. The difference with /W comes with the fact that the files will be sorted alphabetically from first to last in the first collumn, then DIR will continue in the second column. the /W option sort the files from left to right instead.
* * /L * * Use lowercases.
* * /N * * New format on long list where the file names are sorted to the right.
This seems to be a new setting. My DIR use this option by default, but then what would you expect since I only booted WinXP command prompt? If you want to see how it was looking like in the old days, type DIR/-N and see.
* * /O * * Shows the files with a specific sort.
* * * * *SORT * N * * Name (alphabetical order) * * * * *S * * Size (increasing)
* * * * * * * * E * * Extention (alphabetical order) * * D * * Date and time (chronological)
* * * * * * * * G * * Directories listed first * * * * * - * * Negation prefix
* * /P * * Pause after a whole screen of information
This is extremely usefull. If you ever get into a directory which have more files than lines on your screen (would you use /D or not) then using /P will pause the DIR command and ask you to hit a key whenever there is no more space left to write on the screen. Back in the old days you could always hit the Pause (english sp?) button but even then it was hazardous and you often had to start over again if you missed the file you were searching for.
* * /Q * * Shows the name of the owner of the file
Clueless about this one. Never used it. My best bet would be that when you purchased a file or a software, the most influencal producers began to add a line in their files to know from which corporation it was coming from. Like when you started some games it told you from who it has been made and sometimes you had personified messages when the program returned to DOS. Can't help you more on this one.
* * /S * * Subrecurse (sp?) directory.
Instead of only listing the files on the current directory, DIR will search all the visible directories and backtrace them all, listing all the files it encounter along with their original location. Very annoying if you do that in C:\ on a big HD ;). Overall a very powerfull option.
* * /T * * Time sorting option
* * * * *TIME * * C * * Created [i](sort files by date and time of first writting)[/i]
* * * * * * * * * A * * Accessed [i](sort files by last time accessed (or used))[/i]
* * * * * * * * * W * * Writted [i](sort files by last time written (or overwritten)[/i]
* * /W * * Shows the results on 5 columns
This is extremely usefull. Instead of showing the related informations of each files on only one column, DIR will show you all the files it can in one screen in several columns. Extremely powerfull with /P. The difference with /D comes with the fact that the files will be sorted alphabetically from left to right on each line, then DIR will continue to the next line. The /D option sort the files from columns to columns instead.
* * /X * * Shows short names in 8.3 car. format.
Seems to be another Windows modification. Using this flag allow you to see files with only 8 characters long, plus 3 characters for the extention. In OLD DOS, no files could have more than 8 characters plus 3 for the extention. Windows 95 changed that, that's why you can see the ~'s if you use that option since DOS could not read those files correctly innitially.
* * /4 * * Shows the date flag of files on 4 digit
The reason of the infamous 2K bug was that the PC never been innitially intended to work pass year 2000. It was probably left out as an easier way to code or bring the code data size down since space was really an issue at the beginning, so the date year format always been 2 digit (for example 94 for 1994) until recently when the hype about the 2K bug began to appear. It was really a needed upgrade, and you can expect all modern computers to use 4 digit date format now.
I have left the most obvious commands alone, and commented on those I thought would be usefull to. My comments always refer to the last flag listed above the comment.
Hope that helps! :angel:
Petter1979
28-12-2004, 11:11 PM
Originally posted by Kon-Tiki@Dec 28 2004, 07:03 PM
What's the /A:A /D /O:G do?
/A:A Files ready for archiving, (I avoid it listing directories inside directories)
/D = files are list sorted by column.
/O = List by files in sorted order, :G = Group directories first
cant really give a better explanation since english is not my native language. But i used this site to make the command:
http://www.computerhope.com/dirhlp.htm#01
DIR /S /A:A /D /O:G > blah.txt
tried using it on a game i had:
DIR F:\LORDS2 /S /A:A /D /O:G > test11.txt
here is the result:
http://www.upit.dk/u/test11.txt
Petter1979
28-12-2004, 11:18 PM
Hehe Eagle you were faster than me :)
:cheers:
Eagle of Fire
28-12-2004, 11:22 PM
Hehehe, I'm quite happy since, as you can guess, it took me some time to write all this up!
BTW, if you don't mind it would be wise not to write two posts in a row in the same thread as it is usually considered spamming... A nice solution to this would be to hit the "edit" button you can see at the top right corner of all your own posts and then add to the end of your post something like:
Edit: Hehe Eagle you were faster than me :)
:cheers:
Thanks. :)
Petter1979
28-12-2004, 11:27 PM
Ohh sorry didnt know, im not a spammer, as you can may see:
joined 25 april 04, 66-67 posts
around 248 days, 0.27 posts a day.
edit: Sorry about that off topic post, but i was impressed by the info you gave with "DIR" switches
vBulletin® v3.7.1, Copyright ©2000-2025, Jelsoft Enterprises Ltd.