Forum     

Go Back   Digit Technology Discussion Forum > Portables, Peripherals and Electronics > QnA (read only)
Register FAQ Calendar Mark Forums Read

QnA (read only) Mods please help transfer the contents of this forum to proper sections. :)


 
 
LinkBack Thread Tools Search this Thread Display Modes
Old 05-04-2005, 03:22 PM   #1 (permalink)
Right Off the Assembly Line
 
Join Date: Apr 2005
Location: Andhra Pradesh
Posts: 5
Default DIR>PRN


While using DOS, I could get a listing of my files in a folder or drive using
DIR>PRN to get a printout
or
DIR>filename.txt to store as text file in the default folder.

How can I do the same in Windows 98 / XP?
__________________
Smile........ tomorrow will be worse
jnandakumar is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 05-04-2005, 03:52 PM   #2 (permalink)
Right Off the Assembly Line
 
Join Date: Apr 2005
Location: India
Posts: 6
Default

Sure U can do that in WIndows XP too
loveyaseen is offline  
Old 05-04-2005, 04:09 PM   #3 (permalink)
Right Off the Assembly Line
 
Join Date: Apr 2005
Location: Andhra Pradesh
Posts: 5
Default

Quote:
Originally Posted by loveyaseen
Sure U can do that in WIndows XP too
How
Typing DIR C: > D:filename.txt in the RUN mode will return an error telling that "cannot find file DIR or one of its component"
__________________
Smile........ tomorrow will be worse
jnandakumar is offline  
Old 05-04-2005, 04:34 PM   #4 (permalink)
Right Off the Assembly Line
 
Join Date: Apr 2005
Location: India
Posts: 6
Default

* Go to start> RUn
* type cmd (WinXP or Win2000) or command (Win9x, ME)
* now type dir "Source path" >"Destination Path\Filename.extention"
* press enter key (e.g. c:\>dir c:\windows > d:\Test.txt
* now if u open the file u created with a text editor like edit or notepad there u'll find the directory listing of ur source path.
* to come out of the DOS console use exit.

Hope u understand
loveyaseen is offline  
Old 05-04-2005, 05:57 PM   #5 (permalink)
Right Off the Assembly Line
 
Join Date: Apr 2005
Location: Andhra Pradesh
Posts: 5
Default

Quote:
Originally Posted by loveyaseen
* Go to start> RUn
* type cmd (WinXP or Win2000) or command (Win9x, ME)
* now type dir "Source path" >"Destination Path\Filename.extention"
* press enter key (e.g. c:\>dir c:\windows > d:\Test.txt
* now if u open the file u created with a text editor like edit or notepad there u'll find the directory listing of ur source path.
* to come out of the DOS console use exit.

Hope u understand
Thanks a lot yaar
I wanted to list out my MP3 CD contents.

on accadamic interest: Is there any way to do this in Windows w/o going to the command prompt?
Thanks again
__________________
Smile........ tomorrow will be worse
jnandakumar is offline  
Old 06-04-2005, 01:59 PM   #6 (permalink)
Right Off the Assembly Line
 
Join Date: Apr 2005
Location: India
Posts: 6
Default

I don't think there is a way to get a directory listing saved in a file like that. But still I can give u a very long way of doing it as i think would work yet not the really meant to be like.

Here
* in windows explorer open the directory of the files to be listed
* Change the view mode to details or list
* if u need the extension of the files to be seen u have to change it in tools->option-> show known file type extension
* press alt+print screen
* go to a image editor like paint(novice) or photoshop(expert)
* press ctrl+v
* save the file to a disk
* use an OCR software to convert the image to text where definitely u'll get the directory listing........

I KNOW THAT DOESN'T IMPRESS U

but stilll it can be done.

what is list of MP3s for ...... Playlist or something?
loveyaseen is offline  
Old 06-04-2005, 02:37 PM   #7 (permalink)
Right Off the Assembly Line
 
Join Date: Apr 2005
Location: Andhra Pradesh
Posts: 5
Default

Quote:
Originally Posted by loveyaseen
I don't think there is a way to get a directory listing saved in a file like that. But still I can give u a very long way of doing it as i think would work yet not the really meant to be like.

Here
* in windows explorer open the directory of the files to be listed
* Change the view mode to details or list
* if u need the extension of the files to be seen u have to change it in tools->option-> show known file type extension
* press alt+print screen
* go to a image editor like paint(novice) or photoshop(expert)
* press ctrl+v
* save the file to a disk
* use an OCR software to convert the image to text where definitely u'll get the directory listing........

I KNOW THAT DOESN'T IMPRESS U

but stilll it can be done.

what is list of MP3s for ...... Playlist or something?
You are right. That does not impress. The DOS version does the job.

The MP3 list is to label the CD and the CD cover for knowing the contents.
thanks a lot
__________________
Smile........ tomorrow will be worse
jnandakumar is offline  
Old 07-04-2005, 10:44 PM   #8 (permalink)
Wise Old Owl
 
enoonmai's Avatar
 
Join Date: Oct 2004
Location: Parked diagonally in a parallel universe
Posts: 1,304
Default

You cannot simply use dir > prn to output your command line to the printer. This works only with the older DOS mode conventions and adding the fact that most new printers are not LPT but USB only adds to the problem. If you want to print from DOS to your USB printer, here's what you need to do. I will illustrate with my own printer, a HP PSC1210 connected to the USB001 port.

First, go to Printers and Faxes, right click the computer and click Properties>Sharing and select to share the computer with a share name such as HPPSC121. Click Apply>OK. Then, start the command line utility with Start>Run>cmd

Your computer will have a name (can be seen by right clicking My Computer>Properties>Computer Name). Remember it. My computer's name is matrixone. In the command line type in:

net view \\matrixone

Replace matrixone with your own computer's name. You wouldn't have anything connected to your LPT1 port, so enter:

net use LPT1 \\matrixone\HPPSC121 /Persistent:Yes

Replace matrixone and HPPSC121 with your computer and printer-share's names. The persistent option is to enable this every time you start the computer. To verify the command executed successfully, enter:

net view \\matrixone

and you should see your printer-share using the LPT1 port. Next go back to Printers and Faxes, right click the Printer, select Properties>Advanced and click the Print Processor button at the bottom. Select ModiPrint and WinPrint from the left hand side and change the change the default data type from RAW to TEXT for both of them. Click Apply>OK.

Now you can issue a command such as

dir > lpt1:

(remember the colon) and have the directory list print to your printer. To delete this, all you have to do is go back to the command prompt and enter:

net use LPT1 /Delete

Once you do this, you can print from the command line straight by just clicking on Start>Run and entering the command directly, such as:

dir G:\Downloads > lpt1:

and have the contents printed out to your computer.
__________________
Face it, kid! Provoking a reaction isn't the same thing as saying something significant - Calvin
A64 3000+@2.4G/Asus A8V-DLX/1G DDR400/BBA X800 XT PE/320G HGST SATA2
Playing FEAR XP/LSW2
enoonmai is offline  
Old 08-04-2005, 09:35 AM   #9 (permalink)
Right Off the Assembly Line
 
Join Date: Apr 2005
Location: Andhra Pradesh
Posts: 5
Default

Thanks enoonmai
8) Your input helps me on updating my computer knowledge.
I prefer to use the redirection to a txt file since it can be edited / formatted and printed out.

& hats off to Digit forum. I wish I had tried it earlier. I had so many problems which I struggled to sort out.

Thanks to all again.
__________________
Smile........ tomorrow will be worse
jnandakumar is offline  
Old 09-04-2005, 02:55 AM   #10 (permalink)
Who stole my Alpaca!
 
FilledVoid's Avatar
 
Join Date: Jan 2005
Location: Kerala
Posts: 2,020
Default

If Im correct you can also get the directory structure by using Micorosft Outlook 2000 . Once I install Office XP on this system Ill let you know the correct way. but if my memory is correct, in the Outlook bar you should have an option to view the file system ( My Computer) , ocne you select a folder throught there it should give you an explorer like view which Outlook lets you print.
__________________
The Ultimate Chess Strategy : "Hit Hard, Hit Fast and Hit Often"
FilledVoid is offline  
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by clinton
- by icebags
- by ico
- by Charan
- by Piyush

Advertisement




All times are GMT +5.5. The time now is 12:41 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2