Computing.Net > Forums > Programming > Batch TYPE Command

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Batch TYPE Command

Reply to Message Icon

Name: Carts
Date: September 9, 2008 at 16:45:30 Pacific
OS: Windows XP Pro/Home
CPU/Ram: AMD Athlon XP 3200+
Product: eMachines
Comment:

I have a batch file that needs to type all of the files in a certain folder onto the screen. The files have no extension, but I can add something if necessary, they are just plain text.

Right now I say:
TYPE "K:\Dancing Tangerine\Status\*"

and it works, but it shows the directory name above what it types, is there a reason for that?

Babaloomba



Sponsored Link
Ads by Google

Response Number 1
Name: Judago
Date: September 9, 2008 at 18:32:23 Pacific
Reply:

[edit-overcomplicating things]

I think the reason it does that is to separate the output so you know which file your reading.

Would you belive type outputs it's file names using stderr! All you have to do to remove the file/path names is:


TYPE "K:\Dancing Tangerine\Status\*" 2>nul


0

Response Number 2
Name: Carts
Date: September 9, 2008 at 21:05:31 Pacific
Reply:

I'll try it tomorrow, I'm not at my computer right now, and
I'm tired. I'll let you know how it goes... :-0 (yawn) Zzzzz.

Babaloomba


0

Response Number 3
Name: Carts
Date: September 10, 2008 at 21:05:24 Pacific
Reply:

Worked perfectly. Thanks.

You should be happy to know that it is all finished now! No
more help posts, yay! XD

Great little batch since for school since IM can't be
installed and social sites are blocked.

Babaloomba


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Clear last line || in NT5



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Batch TYPE Command

Enhanced Type command www.computing.net/answers/programming/enhanced-type-command/18993.html

batch file command? www.computing.net/answers/programming/batch-file-command/13574.html

Batch file commands help ! www.computing.net/answers/programming/batch-file-commands-help-/16201.html