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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with Windows Script

Status
Not open for further replies.

driddickemc

IS-IT--Management
May 3, 2004
42
0
0
US
Trying to do a for loop in windows command line. .not even sure if this is possible.

Have a file..
AAAA
BBBB
CCCC
DDDD

need to run command on it..

for i in `cat file`
do "some_command file"
done

Can this be done in the windows command line ? I have about 300 lines in this file in this would help tremendously. Thanks for the help in advance
 
In a console window type: FOR /?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Better still, load Cygwin and have the power of bash at your finger tips. If you're a Unix scripter who has to work on the Windows platform you soon get frustrated by the lack of built in tools.

Ceci n'est pas une signature
Columb Healy
 
Thanks guys'..I installed cygwin. Couldn't get the Windows version to work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top