MS DOS

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hello,
i was wondering is it possible to type a command into MS DOS so that it
displays a list of folders. i have a big folder full of music albums and i
would like to be able to print a list without having to type out the names.

cheers, sam
 
| hello,
| i was wondering is it possible to type a command into MS DOS so that it
| displays a list of folders. i have a big folder full of music albums and i
| would like to be able to print a list without having to type out the names.
|
| cheers, sam

Sam:

There is no MS-DOS in WinXP. However, there is a MS-DOS emul;ation capability and if you
open a Command Prompt you can type the following command...

dir >prn

Which will print the contents of the directory (folder) that you are in.
 
hello,
i was wondering is it possible to type a command into MS DOS so that it
displays a list of folders. i have a big folder full of music albums and i
would like to be able to print a list without having to type out the names.

It's not MS-DOS but the command prompt:

dir /b /a:d

will display the names of folders in the current folder.

dir /b /a:d /s

will display folders and subfolders all the way down.

If you want to send it to a file for later printing, add
">filename" (no quotes) to either command.
 
I'll be contary and literal.

To print lst of directories using Ms-Dos (ver 5) type in Start Eun

commnd /k dir /s /ad >prn
(this is folders only)

command /k /s /a >prn
(all files incl hidden)

cmmand /k dir/s >prn
(all files)

You'll need a normal printer or to map a wierd on in Network.

Not so Literal
===========

However to print with file details like Genre, Band, etc

You can drag a folder from (say explorer) on to the file. You can put it in Sendto, type sendto in Start Run, copy the file into the sendto folder, then right click the folder you want to list, Send To, PrintDetailsAppend. Sending To simulates a drag and drop.

Then import the file into excel, delete the columns you don't want (as most are blank for any individual type of file, eg MP3 don't have a Date Picture Taken and JPEGs don't have a Genre property), sort it on description and delete the files you don't want. That will leave just the properties and files you want. This is the most general purpose way I can think of to meet everyones needs.

A drive is the same as a folder for these purposes.

Attached is a VBScript that generate the shell properties (what you see or could see in Explorer). It is a 51 column csv. There is about 40 properties on a standard XP and I've allowed about 10 columns for custom properties that applications may add. Those whove seen it before this one automatically finds the desktop rather than editing the script. To use, drop a folder on it or place in Sendto and send a folder to it. If using the for command (below) you must run it once whereever you put it so it can be found.

To do sub folders type in a command prompt in the folder that you want to start in (It also does the parent folder - a quirk of For)
for /r %A in (.) do start "" /w "PrintDetailsAppend" "%~dpA"

It creates a file on the desktop called Folder Property List.txt

Copy the following line into a text document and rename it to PrintDetailsAppend.vbs

Set objShell = CreateObject("Shell.Application")
Set Ag=Wscript.Arguments
set WshShell = WScript.CreateObject("WScript.Shell")

WshShell.RegWrite "HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths\" & Wscript.ScriptName & "\", Chr(34) & Wscript.ScriptFullName & Chr(34)
WshShell.RegWrite "HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths\" & Left(Wscript.ScriptName, Len(Wscript.ScriptName)-3) & "exe" & "\", Chr(34) & Wscript.ScriptFullName & Chr(34)

Set Fldr=objShell.NameSpace(Ag(0))

Set FldrItems=Fldr.Items
Set fso = CreateObject("Scripting.FileSystemObject")


Set DeskFldr=objShell.Namespace(16)
FName=fso.buildpath(DeskFldr.self.path, "Folder Property List.txt")


Set ts = fso.OpenTextFile(FName, 8, vbtrue)



For x = 0 to 50
t1 = t1 & Fldr.GetDetailsOf(vbnull, x) & " (Shell)" & vbtab
Next
ts.write FLDR.self.path &vbcrlf
ts.Write T1 & vbcrlf
T1=""


For Each FldrItem in FldrItems
For x = 0 to 50
t1 = t1 & Fldr.GetDetailsOf(FldrItem, x) & vbtab
Next
t1=t1 & vbcrlf
ts.Write T1
T1=""
Next
 
In
Sam said:
i was wondering is it possible to type a command into MS DOS so
that
it displays a list of folders. i have a big folder full of
music
albums and i would like to be able to print a list without
having to
type out the names.


Here are three ways:

1. Go to a command prompt and issue the command

dir [drive:folder] > c:\tempfilename (you can use any name and
put it in any folder you want)

Then open notepad, open tempfilename, and print it from there.



2. Go to
http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q321379
and follow the instructions there.

3. Download and use any of the several freeware/shareware
utilities that can do this, such as the popular
http://www.karenware.com/powertools/ptdirprn.asp
 
Don't upload binaries to a text newsgroup. I didn't want your highly
suspect, unknown, and potentially extremely dangerous VBScript on my
hard drive thank you very much.
 
| On Thu, 3 Mar 2005 03:48:28 +1100, "David Candy" <.> wrote:
|
|| 
| Don't upload binaries to a text newsgroup. I didn't want your highly
| suspect, unknown, and potentially extremely dangerous VBScript on my
| hard drive thank you very much.

You didn't have to save it top disk !

In addition, Microsoft allows posting attachments specifically to assist in problem
resolution.
 
Sam said:
hello,
i was wondering is it possible to type a command into MS DOS so that it
displays a list of folders. i have a big folder full of music albums and i
would like to be able to print a list without having to type out the names.

cheers, sam


From the command prompt (Start > Run > Cmd.exe), simply change to
the desired directory and type "dir > filelist.txt" or "dir > lpt1,"
just as you used to do in DOS. Any of the switches for the DIR
command (type "dir /?") will work with this command, if you wish to
modify the output. You can then subsequently edit the resulting text
file using NotePad, WordPad, Word, etc.

Alternatively:

HOW TO Add a Print Directory Feature for Folders in Windows XP
http://support.microsoft.com/?kbid=321379

--

Bruce Chambers

Help us help you:



You can have peace. Or you can have freedom. Don't ever count on having
both at once. - RAH
 
| On Thu, 3 Mar 2005 03:48:28 +1100, "David Candy" <.> wrote:
|
|| 
| Don't upload binaries to a text newsgroup. I didn't want your highly
| suspect, unknown, and potentially extremely dangerous VBScript on my
| hard drive thank you very much.

You didn't have to save it top disk !

In addition, Microsoft allows posting attachments specifically to assist in problem
resolution.

Downloading the post also downloaded and decoded the attachment
automatically. I didn't "choose" to do it, it happened while reading
the post.

I don't care that MS "allows" posting binaries. Many folks still use
dialup. Some still *gasp* pay by the minute for access. They come
into these non-binary groups not expecting to have to spend their
valuable time/money downloading binaries. It's not appropriate.
 
| On Wed, 2 Mar 2005 20:00:30 -0500, "David H. Lipman"

| Downloading the post also downloaded and decoded the attachment
| automatically. I didn't "choose" to do it, it happened while reading
| the post.
|
| I don't care that MS "allows" posting binaries. Many folks still use
| dialup. Some still *gasp* pay by the minute for access. They come
| into these non-binary groups not expecting to have to spend their
| valuable time/money downloading binaries. It's not appropriate.

The max. size attachmnet is under 75KB. Not a real impact on DUN connections. They could
also use the CDO Web Front-End and won't see attachments. In any case it is appropriate if
it helps fix a problem a poster is having.
 
NobodyMan said:
Downloading the post also downloaded and decoded the attachment
automatically. I didn't "choose" to do it, it happened while reading
the post.

I don't care that MS "allows" posting binaries. Many folks still use
dialup. Some still *gasp* pay by the minute for access. They come
into these non-binary groups not expecting to have to spend their
valuable time/money downloading binaries. It's not appropriate.

Doesn't your newsreader indicate an attachment to the message? The
choice is still yours. I agree in principle though, unless the group
name contains the word "binaries" or some other indication that binaries
are acceptable to post to the group then it is usenet convention that
binaries are not to be posted.

To David; it would be a good idea for someone from MS to periodically
post a FAQ for this group. I know there are acceptible use guidlines on
MS's web sites concerning msnews groups, but it is also convention to
periodically post FAQs in newsgroups that are moderated or monitored,
I've even seen group FAQs posted in alt.* groups.

Steve
 
David said:
| hello,
| i was wondering is it possible to type a command into MS DOS so that it
| displays a list of folders. i have a big folder full of music albums and i
| would like to be able to print a list without having to type out the names.
|
| cheers, sam

Sam:

There is no MS-DOS in WinXP.

It would be more acurate to say that there is no MS-DOS *running* in
WinXP. There is in fact MS-DOS contained in XP, but limited to the
ability to create an MS-DOS bootable floppy, which is lacking any useful
external commands. MS would be smart to include at least the few
external MS-DOS command that might be useful, such as FDISK, FORMAT,
EDIT, ATTRIB, XCOPY and DEBUG.

Steve
 
Sure.

That functionality is built into both of NT's command line
interpreters (CLIs); CMD.EXE (NT's native CLI) and COMMAND.COM (NT's
"DOS" CLI). The syntax is likely the same, and I'd use CMD.EXE as
it's more likely to display Long File Names properly.

Start CMD.EXE and use this syntax:

DIR C:\Path\To\Your\Music /S > C:\MUSIC.TXT

Then open C:\MUSIC.TXT to read the list it creates.

You can also type this command...

DIR /?

....to see what syntax you need to use to get exactly what you want -
there's fair control over sorting, what info to show, etc.

Which isn't relevant to what he wants to do; all he's looking for is
internal command line interpreter functionality.
MS would be smart to include at least the few external MS-DOS
command that might be useful, such as FDISK, FORMAT, EDIT,
ATTRIB, XCOPY and DEBUG.

DOS is past its sell-by date, as it doesn't support deep directory
paths, the NTFS file system, certain hardware scalability limits, USB
devices, etc. The only reason we still seek to use DOS is that NT has
yet to provide a decent replacement maintenance OS - in fact, the disk
management tools built into NT (XP is NT 5.1) are pretty dire.

http://cquirke.mvps.org/whatmos.htm refers.
 
Doesn't your newsreader indicate an attachment to the message?

Not if the server strips the attachment off -- as mine does, quite
properly since the newsgroup name doesn't include the word
"binaries".

Sigh. Once again Microsoft illustrates its ignorance of (or
contempt for) Internet standards by taking a recognized protocol
and unilaterally declaring changes to it.
 
Try start run, type in CMD dir c:\ /s

Steve N. said:
It would be more acurate to say that there is no MS-DOS *running* in
WinXP. There is in fact MS-DOS contained in XP, but limited to the ability
to create an MS-DOS bootable floppy, which is lacking any useful external
commands. MS would be smart to include at least the few external MS-DOS
command that might be useful, such as FDISK, FORMAT, EDIT, ATTRIB, XCOPY
and DEBUG.

Steve
 
The Dos Boot Disk is Dos Ver 7.1. The Dos built into XP is 5 (and 5.5 if a program really needs to know Dos 5 under NT vs Dos 5 raw).

Therefore use
 
This predates the internet. This is the decendants of Compuserve and the Microsoft Bulliten board.
 
Doesn't your newsreader indicate an attachment to the message? The
choice is still yours. I agree in principle though, unless the group
name contains the word "binaries" or some other indication that binaries
are acceptable to post to the group then it is usenet convention that
binaries are not to be posted.

No. Agent identifies posts by Size, but doesn't say that those lines
are an encoded attachment - at least not until you download the post
and not just the header.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top