We help IT Professionals succeed at work.

Can someone show me the syntax for passing in Command Line arguments in Project/Debug* tab?

wally_davis
wally_davis asked
on
742 Views
Last Modified: 2012-06-27
Can someone show me the syntax for passing in Command Line arguments in Project/Debug* tab?
I have a ComputerName = SANI, a Username = JACK and a password = Pass34

When i attempt to pass in anything I type, I get this message: "The current project settings specify that the project will be debugged with specific security permissions. In this mode, command line arguments will not be passed to the executable. Do you want to continue debugging anyway?
My question is why won't it pass the arguments to the command line?
I have these switches and code references --> RemoteShell.exe -C <ComputerName> -U <Username> -P <Password>. The variables in the code are remote_pc, user and pass respectively.

Thank you in advance Experts,
Wally
Comment
Watch Question

Retired
CERTIFIED EXPERT
Distinguished Expert 2017
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
Well....I passed in the Command Line arguments, i.e. the way they're defined in the code and it still threw me the same error. This is in VS 2008.
I typed it in like this: -C SANI -U Jack -P Pass34 AND like this -C=SAN -U=Jack -P=Pass34.

Is there something else I need to configure or some other step I might have missed?
Fernando SotoRetired
CERTIFIED EXPERT
Distinguished Expert 2017
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
Works perfect now. Thanks Fernando!
Fernando SotoRetired
CERTIFIED EXPERT
Distinguished Expert 2017

Commented:
Not a problem, glad to help.  ;=)
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.