-=PCTechTalk=- Re: Printing files in folders
- From: Jim <n1jmm@xxxxxxxxxxxxx>
- To: pctechtalk@xxxxxxxxxxxxx
- Date: Tue, 27 Apr 2004 23:31:05 -0400
You Bet there is
open the command line window again
type DIR /? and hit enter
it will give you the help for the DIR command
you can get help on most commands this way.
choose the command line 'switches' you need to do what you want.
--------------
Displays a list of files and subdirectories in a directory.
DIR [drive:][path][filename] [/A[[:]attributes]] [/B] [/C] [/D] [/L] [/N]
[/O[[:]sortorder]] [/P] [/Q] [/S] [/T[[:]timefield]] [/W] [/X] [/4]
[drive:][path][filename]
Specifies drive, directory, and/or files to list.
/A Displays files with specified attributes.
attributes D Directories R Read-only files
H Hidden files A Files ready for archiving
S System files - Prefix meaning not
/B Uses bare format (no heading information or summary).
/C Display the thousand separator in file sizes. This is the
default. Use /-C to disable display of separator.
/D Same as wide but files are list sorted by column.
/L Uses lowercase.
/N New long list format where filenames are on the far right.
/O List by files in sorted order.
sortorder N By name (alphabetic) S By size (smallest first)
E By extension (alphabetic) D By date/time (oldest first)
G Group directories first - Prefix to reverse order
/P Pauses after each screenful of information.
/Q Display the owner of the file.
/S Displays files in specified directory and all subdirectories.
/T Controls which time field displayed or used for sorting
timefield C Creation
A Last Access
W Last Written
/W Uses wide list format.
/X This displays the short names generated for non-8dot3 file
names. The format is that of /N with the short name inserted
before the long name. If no short name is present, blanks are
displayed in its place.
/4 Displays four-digit years
Switches may be preset in the DIRCMD environment variable. Override
preset switches by prefixing any switch with - (hyphen)--for example, /-W.
--------------
You can re-direct the output of the dir help to a file also,
dir /? > c:\dirhelp.txt
is how I got that info. Notice you can choose what info you want to sort
on and even reverse the order.
Note I did this in win XP Pro, your version may differ some, but this
has been pretty standard since early DOS days.
-Jim-
HandsomeBlck@xxxxxxx wrote:
>In a message dated 4/26/2004 8:41:27 PM Pacific Daylight Time,
>n1jmm@xxxxxxxxxxxxx writes:
>
>
>>Note that you can output the directory to a file by using:
>>dir >c:\temp\mydirectory.txt
>>
>>
>
>Jim,
> I was able to print the dir using dir>filename.txt, but the files werent
>in alphabetical order. Is there a command to put them in order before
>printing or sending to txt file?
>
>Thanks,
>
>HB
>
>
>To unsub or change your email settings:
>http://www.freelists.org/webpage/pctechtalk
>
>To access our Archives:
>http://groups.yahoo.com/group/PCTechTalk/messages/
>http://www.freelists.org/archives/pctechtalk/
>
>For more info:
>http://www.freelists.org/cgi-bin/list?list_id=pctechtalk
>
>
>
To unsub or change your email settings:
http://www.freelists.org/webpage/pctechtalk
To access our Archives:
http://groups.yahoo.com/group/PCTechTalk/messages/
http://www.freelists.org/archives/pctechtalk/
For more info:
http://www.freelists.org/cgi-bin/list?list_id=pctechtalk
- References:
- -=PCTechTalk=- Re: Printing files in folders
- From: HandsomeBlck
Other related posts:
- » -=PCTechTalk=- Re: Printing files in folders
- » -=PCTechTalk=- Re: Printing files in folders
- » -=PCTechTalk=- Re: Printing files in folders
- » -=PCTechTalk=- Re: Printing files in folders
- » -=PCTechTalk=- Re: Printing files in folders
- » -=PCTechTalk=- Re: Printing files in folders
- » -=PCTechTalk=- Re: Printing files in folders
- -=PCTechTalk=- Re: Printing files in folders
- From: HandsomeBlck