Name: that /g/ /g/uy 2008-07-15 4:35
tl;dr: is that batch I wrote at the end of this post alright?
let's say there's 2 buttons on my laptop that can't be reconfigured to do anything else by software means and i was trying to use that batch file to re-route the command.
one button uses "ROOT" and the other uses "MY_DVD" (that's what the echo %1 returns)
How would I go making the IF's to make one of the buttons call "C:\windows\notepad.exe" and the other "cmd"?
Is this good?:
echo %1
IF "%1" = "ROOT" C:\windows\notepad.exe
IF "%1" = "MY_DVD" cmd
EXIT
let's say there's 2 buttons on my laptop that can't be reconfigured to do anything else by software means and i was trying to use that batch file to re-route the command.
one button uses "ROOT" and the other uses "MY_DVD" (that's what the echo %1 returns)
How would I go making the IF's to make one of the buttons call "C:\windows\notepad.exe" and the other "cmd"?
Is this good?:
echo %1
IF "%1" = "ROOT" C:\windows\notepad.exe
IF "%1" = "MY_DVD" cmd
EXIT