Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Name issue 1

Status
Not open for further replies.

dinduboy14

Vendor
Mar 13, 2002
60
AU
Hi all, in a folder i have 10 powerpoint files and i would like to ouput the 10 powerpoint files name into a file like notepad- e.g ABC1.ppt, ABC2.ppt, ABC3.ppt.
Is there an freeware application,script or any method i can use to do this?
sorry i am not good with programming. Much thanks all!
 
The simplest way is to use the dir command in a Command Prompt. Adding the /b flag will make it return just the filenames (no dates, sizes etc).

Start -> Run type cmd and press Enter);
Change into the directory that holds your 10 files;
dir /b

If it returns too many files, use this instead:
dir /b *.ppt


To select the output, right-click in the Command Prompt window and choose Mark. Then select the output with your mouse, right-click again and choose Copy.

You can now paste this into notepad.
 
Hi SPV:

Quick question for you. Let us say from DOS I want to redirect the output directly to a Printer.

Now if it was a Parallel printer ... I would have used > LPTn

and for a Serial printer ... I would have used > COMn

What would I use for a USB printer?

(I would have thought it would be > USB but I don't know the number.

What would be the port name? and how would I know the port number? I looked at the printer properties and it says the printer is attached to a Virtual Printer Port for USB.)

Any help would be greatly appreciated -- Thanks.

Yogi Anand, D.Eng, P.E.
Energy Efficient Building Network LLC
 
Yogi, good question. You've got me stumped there.

It might not be possible as the comms over USB are probably more complex than over LPT or COM (they will just accept plain text, not sure if USB will).

Someone might know in the Windows XP forum.
 
Or you can write the Dir output directly to a text (.txt) file, readable by Notepad...or any other text editor.

Dir > filename

eg. Dir > myPPT.txt

will write a plain text file myPPT.txt

As for printing to a USB printer, there are a bunch of useful suggestions here.

faq219-2884

Gerry
My paintings and sculpture
 
Thanks SPV!

Thanks fumei! ...
for the great link. No problems with directing the info from DOS to a file and then printing the file via Windows on a USB printer. My question was for directing directly to a USB printer from DOS. Again, Thanks for the link -- and a Star for you!

Yogi Anand, D.Eng, P.E.
Energy Efficient Building Network LLC
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top