?
Solved

Not able to pass command line parameters

Posted on 2003-03-07
8
Medium Priority
?
140 Views
Last Modified: 2010-04-13
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
Comment
Question by:Profidiam
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 10

Expert Comment

by:makerp
ID: 8087202
put the command line in quotes; "-game blah etc"
0
 

Author Comment

by:Profidiam
ID: 8087221
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
 

Expert Comment

by:protofj
ID: 8087548
wrong way round - put the initial string in quotes
ie

"d:\games\half-life\hlds.exe" -game cstrike
0
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 

Author Comment

by:Profidiam
ID: 8087730
I should have said this more clearly, but chenging the quote doesn't help me either
0
 
LVL 1

Expert Comment

by:klaszlo
ID: 8088162
Have you tried with MS Windows apps too? Something like excel myfile.xls from Start, Run does running ?
0
 

Author Comment

by:Profidiam
ID: 8091709
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
 
LVL 5

Expert Comment

by:cempasha
ID: 8603774
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
 

Accepted Solution

by:
PashaMod earned 0 total points
ID: 9583206
PAQed, with points refunded (75)

PashaMod
Community Support Moderator
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
What's worse than having your data encrypted by ransomware? Getting attacked by a so-called "wiper," which simply destroys the data and offers you no hope of ever seeing it again.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses
Course of the Month14 days, 16 hours left to enroll

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question