Computing.Net > Forums > Programming > DOS for 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.

DOS for command

Reply to Message Icon

Name: voz
Date: February 11, 2009 at 03:08:12 Pacific
OS: Windows Vista
Subcategory: Batch
Comment:

Gotta make a batch file for my school but got some probs with using FOR. Need to copy the names of all the .txt files onto my dos screen by using for. But don't really know how to use it properly. Can anyone help me with it ?



Sponsored Link
Ads by Google

Response Number 1
Name: IVO
Date: February 11, 2009 at 04:03:24 Pacific
Reply:

Next time read your textbook or have that explained by yoir teacher

@echo off
for %%j in (*.txt) do echo %%j


0
Reply to Message Icon

Related Posts

See More


Shell script Ask for name on open & up...



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: DOS for command

DOS 'For' Command www.computing.net/answers/programming/dos-for-command/20184.html

DOS - FOR Command www.computing.net/answers/programming/dos-for-command/14596.html

c prog (Borland) for dos dir command www.computing.net/answers/programming/c-prog-borland-for-dos-dir-command/844.html