Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Batch file

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

Name: Anonymous 2008-07-15 5:22

tl;dr: is that batch I wrote at the end of this post alright?
I DON'T KNOW WHY DON'T YOU TEST IT

Name: Anonymous 2008-07-15 5:32

I did and didn't work.
any sugestions would be greatly appreatiated.

Name: Anonymous 2008-07-15 6:55

IF "%1" = "ROOT" START C:\windows\notepad.exe
IF "%1" = "MY_DVD" START cmd

Name: Anonymous 2008-07-15 6:59

remove the quotes from %1

Name: Anonymous 2008-07-15 7:06

Name: Anonymous 2008-07-15 7:39

It will not work, so it is not good.

Name: Anonymous 2008-07-15 8:54

"%1" == "ROOT" lrn2if

Name: Anonymous 2008-07-15 10:24

Name: OP 2008-07-15 18:10

Thanks.
this is what I did:

IF "%1"=="MY_DVD" "C:\Program Files\Windows Media Player\wmplayer.exe"
IF "%1"=="ROOT" "C:\Program Files\Mozilla Firefox\firefox.exe"
EXIT

at first it didn't work because I hadnt put the "s and cmd didn't know how to run C:\Program ...
anyways, thanks a lot for your help.

Name: Anonymous 2010-11-28 16:36

Name: Anonymous 2010-12-17 1:36

Are you GAY?
Are you a NIGGER?
Are you a GAY NIGGER?

If you answered "Yes" to all of the above questions, then GNAA (GAY NIGGER ASSOCIATION OF AMERICA) might be exactly what you've been looking for!

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List