Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi, I've written a cmd.exe batch file to read text from a file, something like this:
for /f %%s in (file.txt) do call process "%s"
This works fine except that it skips blanks lines. Is there any way to prevent it skipping blank lines?
I know I can use other languages (Perl, Javascript, tcsh, PowerShell etc), but I want to use nothing other than cmd.exe (no external helper utilities either) as I'm doing it as a learning exercise.
Thanks
Klint

Try here: http://www.computing.net/programmin...
Once I thought I was wrong, now I'm not so sure!

![]() |
Format gives error messag...
|
Dell 1501 No Networking A...
|

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