473,406 Members | 2,894 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

short cut question

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
May 10 '07 #1
6 1010
Private Sub InitializeComponent(-admin as string)

"Localbar" <lo*********@gmail.comschreef in bericht
news:ue**************@TK2MSFTNGP06.phx.gbl...
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


May 10 '07 #2
Can tell me more detail....

Thx
"Cor Ligthert [MVP]" <no************@planet.nl¦b¶l¥ó
news:Og**************@TK2MSFTNGP05.phx.gbl ¤¤¼¶¼g...
Private Sub InitializeComponent(-admin as string)

"Localbar" <lo*********@gmail.comschreef in bericht
news:ue**************@TK2MSFTNGP06.phx.gbl...
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


May 10 '07 #3
Localbar wrote:
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
May 10 '07 #4
yes ....

"Andrew Morton" <ak*@in-press.co.uk.invalid¦b¶l¥ó
news:%2****************@TK2MSFTNGP06.phx.gbl ¤¤¼¶¼g...
Localbar wrote:
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


May 10 '07 #5
>Localbar wrote:
>> 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.
Andrew wrote:
>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?

Localbar wrote:
>>Anyone have idea how to do it ?
Andrew wrote:
>Are you looking for Environment.GetCommandLineArgs ?
Localbar wrote:
yes ....
Go on, give us a hint as to which of the two questions I asked you're saying
yes to... :-)

Andrew
May 10 '07 #6
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


"Andrew Morton" <ak*@in-press.co.uk.invalid¦b¶l¥ó
news:uz**************@TK2MSFTNGP05.phx.gbl ¤¤¼¶¼g...
Localbar wrote:
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.
Andrew wrote:
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?

Localbar wrote:
Anyone have idea how to do it ?
Andrew wrote:
Are you looking for Environment.GetCommandLineArgs ?
Localbar wrote:
yes ....

Go on, give us a hint as to which of the two questions I asked you're
saying
yes to... :-)

Andrew


May 10 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Niels Dekker (no reply address) | last post by:
Is it possible for a standard compliant C++ compiler to have ( sizeof(short) < sizeof(int) ) and ( sizeof(short) == sizeof((short)0 + (short)0) ) ? Regards, Niels Dekker...
3
by: PhoneJack | last post by:
I am writting an algorithm that generates very large tables in dynamic memory on a linux system. These 2 tables are of the order of (30,000 x 30,000). They are being generated by the following...
99
by: Glen Herrmannsfeldt | last post by:
I was compiling a program written by someone else about six years ago, and widely distributed at the time. It also includes makefiles for many different systems, so I know it has been compiled...
18
by: a | last post by:
short s; long l; s= -2; l= -3; printf("% _ %_",s, l); What characters should be filled out in the formatted string for output? Thanx
29
by: john | last post by:
I read in the first question in the FAQ that both short and int are guaranteed to be able to hold values up to 32,767. Then why would one use an int instead of a short if short takes less space?
8
by: avsrk | last post by:
Hello Folks , General C data types question , more geared up towards embedded folks . I have a positive float quantity with a fractional part (one decimal point) which occupies 4 bytes ....
7
by: Partho | last post by:
I have a float variable which I need to add to a short variable. How do I do this? Do I have to typecast or is there a way around? I tried typecasting the float to a short, but that gives me a 0 or...
0
by: wolverine | last post by:
Hi I want to know how to use basic_string with unsigned short (I have mentioned below why i have to do this). Could any tell me some good references in this topic. I am new to creating a new...
7
by: Z-Z | last post by:
Hi, I used the following macro to determine variable signed or not, but only find that it is useless for a short or char variable. I think that it might caused by value conversion rules. I used...
3
by: TS | last post by:
short x = 1; //this has build error saying missing conversion x = x + 2; Why can't you just add this? I guess the 1 is a literal that translates to an int32? How would I accomplish this...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.