Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Batch If Statement help
Name: aznkd74 Date: July 7, 2005 at 22:02:25 Pacific OS: Windows 2000 CPU/Ram: 512
Comment:
I have this batch file:
set Var=C:\PROGRAM FILES\Shrink\SDC.INI
for /f "tokens=1,2,3* delims== " %%A in ('type "%var%" ^| find "Display="') do set Monitor=%%B
IF %Monitor% == "vga" (set %Monitor%= non-vga")
How do I pass the Monitor variable to change value for the ini file.
Name: Mechanix2Go Date: July 7, 2005 at 23:05:19 Pacific
Reply:
Hi KD,
Not quite with you. Is this the problem line?
============== IF %Monitor% == "vga" (set %Monitor%= non-vga") ==============
M2
If at first you don't succeed, you're about average.
0
Response Number 3
Name: aznkd74 Date: July 8, 2005 at 06:54:54 Pacific
Reply:
M2,
The problem is the variable (Monitor). I am trying to resuse this var to have a value within the ini modify through the condition statement. Within SDI.ini, there is a value Monitor=vga. I want the vga value to modify through the if statement.
Summary: i am creating a batch file and i am having trouble w/ something one part of th ebatch file suppose to exit out if the parameter that the user types in is less than 4 this is what i have echo on ech...
Summary: Medal of Honor and Jedi Outcast keep crashing on me when I play online, from what seems to be an access violation error. The game will freeze and the sound will stutter. Money if you can help me fix! ...
Summary: I am new to batch file programming can someone please help me to create a batch file that will telnet. Once connected it will login with a password. ...