Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 143
  • Last Modified:

Not able to pass command line parameters

Since a while ago, I cannot pass any command line parameters to a windows program. It seems like it's just ignoring the extra parameters I am sending.

Command switches in a DOS box do work however.

ie. Running a HLDS server with a shortcut (hlds.exe -game blabla) , starting any game with parameters .

I suppose it should have something to do with a wrapper that is around all my exe files or something, but cannot find any info about this strange behaviour.
0
Profidiam
Asked:
Profidiam
1 Solution
 
makerpCommented:
put the command line in quotes; "-game blah etc"
0
 
ProfidiamAuthor Commented:
This does not work either, when I run the command with parameters from another "helper" program, like HLSW or gamespy, the extra parameters are ignored.

Your suggestion, to try
D:\games\Half-Life\hlds.exe "-game cstrike"
in the "target" window doesn't help. I cannot put the entire command in quotes, because windows won't let me.
0
 
protofjCommented:
wrong way round - put the initial string in quotes
ie

"d:\games\half-life\hlds.exe" -game cstrike
0
Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

 
ProfidiamAuthor Commented:
I should have said this more clearly, but chenging the quote doesn't help me either
0
 
klaszloCommented:
Have you tried with MS Windows apps too? Something like excel myfile.xls from Start, Run does running ?
0
 
ProfidiamAuthor Commented:
this is also something that doesn't work, I created the file, and from the same dir. I tried excel test.xls , and it opened  a new workspace, and not the specified xls file.
0
 
cempashaCommented:
This question is still open and getting old. If any of the comment(s) above helped you please accept it as an answer or split the points who ever helped you in this question. Your attention in finalising this question is very much appreciated. Thanks in advance,

****** PLEASE DO NOT ACCEPT THIS AS AN ANSWER ********

- If you would like to close this question and have your points refunded, please post a question in community support area on http://www.experts-exchange.com/Community_Support/ giving the address of this question. Thank you      

Pasha

Cleanup Volunteer


0
 
PashaModCommented:
PAQed, with points refunded (75)

PashaMod
Community Support Moderator
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now