Computing.Net > Forums > Programming > Send line to bat file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Send line to bat file

Reply to Message Icon

Name: Nath5
Date: November 26, 2007 at 15:24:14 Pacific
OS: 11
CPU/Ram: 11
Product: 11
Comment:

I have one batch file that i need to create and then remove another batch file. I was using the format below

echo "Code Here">>batch.bat

however the following lines do not seem to work

echo IF /I %var1% GEQ 0 goto 1>>Delay.bat
echo IF /I %var1% lss 0 goto 3>>Delay.bat

instead the new batch file contains the following line

IF /I GEQ 0 goto

where both of the above should be.




Sponsored Link
Ads by Google

Response Number 1
Name: Razor2.3
Date: November 26, 2007 at 20:33:06 Pacific
Reply:

echo IF /I %%var1%% GEQ 0 goto 1>>Delay.bat
echo IF /I %%var1%% lss 0 goto 3>>Delay.bat


0
Reply to Message Icon

Related Posts

See More


excel macro help! Resize a form in VB 2008



Post Locked

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


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Send line to bat file

Send line to vbs file www.computing.net/answers/programming/send-line-to-vbs-file/15973.html

Send email+attachment by bat file www.computing.net/answers/programming/send-emailattachment-by-bat-file/16774.html

creating a file using a .bat file www.computing.net/answers/programming/creating-a-file-using-a-bat-file/11035.html