Search found 2 matches

by Kligham
07 Aug 2014 12:57
Forum: DOS Batch Forum
Topic: Batch file with for loops isn't working
Replies: 2
Views: 2501

Batch file with for loops isn't working

I'm trying to make a script that takes all the .sql files in a folder and counts the amount of "/*" and "*/" as a first token. I have the following script: FOR /F "delims=" %%a IN ('DIR /b *.sql') do ( SET start=0 SET end=0 SET correct=1 FOR /F "tokens=1" %%b ...
by Kligham
26 Jan 2011 19:50
Forum: DOS Batch Forum
Topic: Echoing /?
Replies: 6
Views: 6681

Echoing /?

Hi, I have a little problem. For an exercise i need to do the following: echo /? This is an optional parameter But the problem is that it displays the help for echo command. I want it to display "/? This is an optional parameter". I looked in google but couldn't find a solution. I tried wi...