short cut question

  • Thread starter Thread starter Localbar
  • Start date Start date
L

Localbar

Hi all,

I have a vb2003 application system. And I made a shortcut for this
system in the desktop. I would like to add a parameter in this shortcut. For
example: in the shortcut TARGET is "C:\Program Files\xyz\abc.exe" -admin

After I click this shortcut. In the login form can let user choose different
center to login system. but in no -admin, user can't choose center, only
show default one.

Anyone have idea how to do it ?

Thanks
 
Localbar said:
I have a vb2003 application system. And I made a shortcut for this
system in the desktop. I would like to add a parameter in this
shortcut. For example: in the shortcut TARGET is "C:\Program
Files\xyz\abc.exe" -admin

After I click this shortcut. In the login form can let user choose
different center to login system. but in no -admin, user can't choose
center, only show default one.

Do you mean that when the -admin parameter is used, the user can choose a
different centre, but when the -admin parameter is not used, the user can
only see the default centre?
Anyone have idea how to do it ?

Are you looking for Environment.GetCommandLineArgs ?

Andrew
 
yes ....



Andrew Morton said:
Do you mean that when the -admin parameter is used, the user can choose a
different centre, but when the -admin parameter is not used, the user can
only see the default centre?


Are you looking for Environment.GetCommandLineArgs ?

Andrew
 
Sorry I didn't see your last question.

yes is ans your first question.

After I see your 2nd question. I try to test it..Nows is ok

Thanks
 
Back
Top