Command line arguments do not show in Environment.CommandLine

D

**Developer**

'Under "Properties/Configuration Properties/Debugging/Command line
arguments" I inserted the string: /Debug

Also tried \Debug and Debug



But it doesn't show in Environment.CommandLine



Shouldn't it?





Thanks
 
K

Ken Tucker [MVP]

Hi,

This works

For Each s As String In Environment.GetCommandLineArgs

Trace.WriteLine(s)

Next



Ken
 
D

**Developer**

Doesn't work for me. I believe I'm doing something wrong when I add the
command line arguments.
Does the below appear OK to you?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top