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 commandline arg with =
Name: timothy_aah Date: July 30, 2008 at 12:32:45 Pacific OS: xp/vista CPU/Ram: AMD x2 4200+/2GB
Comment:
Hi,
I would like to pass a commandline argument to another batch/exe, it looks like this:
"mod=something" is ONE SINGLE command line arg, that canNOT be changed in the app it's being sent to if I send it to another batch file to test the output I get now, then %1 is set to "mod" and %2 is set to "something" but I need %1 to be "mod=something" how would I do this?
obviously in that way you can pass just one parameter on the command line.
0
Response Number 2
Name: tonysathre Date: July 30, 2008 at 13:34:53 Pacific
Reply:
@echo off set mod=mod=something start filename.exe %mod%
0
Response Number 3
Name: timothy_aah Date: July 30, 2008 at 13:45:37 Pacific
Reply:
thx, hadn't tried that yet it's still not 100% though, you need to put it between quotes for it to work, otherwise the "=" character and everything that follows it is not stored in the variable so this is what I did, and now it works:
@echo off set mod="mod=something" start filename.exe %mod%
Summary: I am looking for some help with Batch Program creation. I would like to create a batch file that asks you a question "what would you like to name the folder?" and then that name would be a variable a...
Summary: Hello everybody! I want to write a batch file, which opens some files. The problem is, that i don't know how (and if) i can open the files at my wanted position and with my wanted window-size. At the ...
Summary: I've got a problem with FINDSTR using a batch file in XP. I'm trying to read a text file, and then set a certain token in that text file to a varible. This is the code I've got so far, [code] FOR /F "...