|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Batch file simple program problem
Hey guys,
I am trying to teach myself how to wirte batch files and after reading a lot i tried this simple program. The program is to read in a line from a text pad and print to to the screen. When i run the batch file the textpad opens and just sits there. if i close the textpad the batch file closes. Can someone help me fix this program? Code:
@echo off
for /f "tokens=*" %%G IN ('Reader.txt') DO (
set /p var =%%G
echo var
pause
)
Thanks for any help |
|
#2
|
|||
|
|||
|
Never mind, just had to remove the quotes from Reader.txt...
I'm an idiot.. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Batch file simple program problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|