Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

create batch file to launch executable

Status
Not open for further replies.

justride

Programmer
Jan 9, 2004
251
US
how can i create a batch file to launch an executable with parameter arguments...

@echo on
"c:\crap.exe -Darg=crap"
pause

the -Darg=crap is not being processed, but the dos window doesnt not display any error, it just executes crap.exe alone.

thanks
 
Try:

@echo on
"c:\crap.exe[!]"[/!] -Darg=crap
pause
 
If you were at a command line, you would in fact type exactly c:\crap.exe -Darg=crap ?

I am not sure but try:

@echo on
CALL "c:\crap.exe -Darg^=crap"
pause
 
If you do not want to see it on the screen consider porting it to a nul

Never give up never give in.

There are no short cuts to anything worth doing :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top