Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Command line argument / published app

Status
Not open for further replies.

stroyer74

IS-IT--Management
Jan 22, 2003
70
US
I have a VB.NET app that makes a lot of use of the GetCommandLineArgs function. With a published application, I don't see anyway to start a published application without using the installed icon, and obviously when starting it from the icon, I cannot pass any command line parameters.

Does anyone have any ideas on how to get around this? Basically I'm looking for a way to execute a published application from a command prompt.


Thanks in advance,
Sheldon
 
You can put command line parameters in a shortcut. In the shortcut's properties, there is a Target box, which has the path and executable in it. This is essentially the same as typing the path and executable name at a command line prompt. You can add the command line arguments in the Target field, just as you would at the command prompt. The only thing I am not sure about is how to set this up in an installation project, when you set up the shortcuts.


I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson

Arrrr, mateys! Ye needs ta be preparin' yerselves fer Talk Like a Pirate Day! Ye has a choice: talk like a pira
 
While that is true for a shortcut's properties, if the application is a published application, the icon that gets installed does not have a target box.

My published app is installed from a shared folder, then ever time the app is run, it checks the share for updates, installs updates if needed, then runs the program. It isn't installed to a specific location like a regular installed program does. So therefore there isn't a regular type of shortcut to it.

This is how I understand it anyhow. Maybe my thinking is way off on this.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top