Feb 6, 2004 #1 chomps303 MIS Sep 30, 2003 83 US I am a unix guy, How do I do a for next loop in Unix: for name in `cat filename` do cp $name newname done Is it possible to do this in dos? Thanks Brandt
I am a unix guy, How do I do a for next loop in Unix: for name in `cat filename` do cp $name newname done Is it possible to do this in dos? Thanks Brandt
Feb 7, 2004 #2 zeitghost Programmer Oct 30, 2003 378 GB If you are referring to a batch file or from the dos prompt for %1 in ( *.* ) do type %1 works from the command prompt. for %%1 in ( *.* ) do type %%1 works in a batch file. rgds Zeit. Upvote 0 Downvote
If you are referring to a batch file or from the dos prompt for %1 in ( *.* ) do type %1 works from the command prompt. for %%1 in ( *.* ) do type %%1 works in a batch file. rgds Zeit.