Results 1 to 12 of 12

Thread: [RESOLVED] [2005] Command Line Parameters

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    May 2003
    Posts
    758

    Resolved [RESOLVED] [2005] Command Line Parameters

    I have installed a VB 2005 application onto an XP machine and I have a few command line parameters (startup parameters) that I look for in my code. I was going to set some of these for one of our admins, but I cannot find a place to put them in the shortcut. Even after creating a shortcut on the desktop, there is no place to enter any sort of parameters.

    The shortcut says "Application Reference" under "Type of file" instead of "Application".

    PS - The application was "Published" to a shared location on the server.

    Can someone give me an idea of where to go from here??

    Thanks!!
    My.Settings.Signature = String.Empty

  2. #2
    Addicted Member
    Join Date
    Aug 2006
    Posts
    132

    Re: [2005] Command Line Parameters

    under the Target property of your shortcut, enter your paramters. For example:
    "C:\Program Files\Soylent Backup\Soylent Backup.exe" -min

    would pass the -min parameter.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    May 2003
    Posts
    758

    Re: [2005] Command Line Parameters

    I can't do that as this is a published application out of VB 2005. There are actually none of the typical "Shortcut" properties available on this icon.

    This application is set to go live next week and I would really like to find an answer to this.

    PS - I can put up a screenshot of the property page if necessary.
    My.Settings.Signature = String.Empty

  4. #4
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339

    Re: [2005] Command Line Parameters

    Did you try copying the shortcut to see if it enables the fields?

    The publish feature of VB2005 is very limited and may not do what you need.

  5. #5
    PowerPoster JuggaloBrotha's Avatar
    Join Date
    Sep 2005
    Location
    Lansing, MI; USA
    Posts
    4,286

    Re: [2005] Command Line Parameters

    all shortcut's have a target property (or it wouldnt be a shortcut at all) therefor all you need to do is modify it by putting the double quotes around the path and filename that the shortcut points to (the exe file) then add the parameters by putting a dash then the parameter that needs to be passed
    Currently using VS 2015 Enterprise on Win10 Enterprise x64.

    CodeBank: All ThreadsColors ComboBoxFading & Gradient FormMoveItemListBox/MoveItemListViewMultilineListBoxMenuButtonToolStripCheckBoxStart with Windows

  6. #6
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339

    Re: [2005] Command Line Parameters

    Sometimes the target property is disabled. I see it all the time at work.

    Also applications installed via Click Once give you the exe properties even if you create a shortcut. They are actually not shortcuts (although you use 'Create Shortcut') it is an 'Application Reference'.

    I don't think you can do this if you use Click Once deployment.
    Attached Images Attached Images  
    Last edited by Edneeis; Sep 22nd, 2006 at 01:50 AM.

  7. #7
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339

    Re: [2005] Command Line Parameters


  8. #8

    Thread Starter
    Fanatic Member
    Join Date
    May 2003
    Posts
    758

    Re: [2005] Command Line Parameters

    First, Thanks JuggaloBrotha. One of the things on my todo list was setup a mechanism for printing the screen. I saw your signature and will use that. Thanks for saving me the search time!!


    I have looked and looked and cannot find anything on how to make this work. As a bandaid for now, I think I am going to make an application that gives the user various options for startup and then store those in the registry. When the user next launches my application, it will run with those settings.

    I would like to find a way around this, though.
    My.Settings.Signature = String.Empty

  9. #9
    PowerPoster JuggaloBrotha's Avatar
    Join Date
    Sep 2005
    Location
    Lansing, MI; USA
    Posts
    4,286

    Re: [2005] Command Line Parameters

    perhaps when the installer makes the shortcut, you can tell it to supply commandline args to the target path

    i think the deployment wizard that comes with visual studio allows this, but i'm not sure

    Aspnot, Gigemboy's signature has a link to a screen capture class for vb.net that works better than the one in my sig, fyi
    Currently using VS 2015 Enterprise on Win10 Enterprise x64.

    CodeBank: All ThreadsColors ComboBoxFading & Gradient FormMoveItemListBox/MoveItemListViewMultilineListBoxMenuButtonToolStripCheckBoxStart with Windows

  10. #10

    Thread Starter
    Fanatic Member
    Join Date
    May 2003
    Posts
    758

    Re: [2005] Command Line Parameters

    I still haven't figured this one out.

    I've tried the suggestions here to no avail. I spent quite a bit of time this weekend going through the Publish options and didn't see anything that could help.

    Hopefully someone else out there has an idea.
    My.Settings.Signature = String.Empty

  11. #11
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339

    Re: [2005] Command Line Parameters

    MS has stated that the publish funtionality is not ideal for all situations. I think you should look to 3rd party tools or traditional deployment methods as opposed to the publish function. I'm afraid it just can not do what you ask.

  12. #12

    Thread Starter
    Fanatic Member
    Join Date
    May 2003
    Posts
    758

    Re: [2005] Command Line Parameters

    That's what I was starting to think. I may just opt to create several versions of the app with the various settings. The biggest thing I need is to have a TEST version of the app that points to the TEST database.

    I will look into some of the other deployment options out there. This is apparently one downside to using the Express version.
    My.Settings.Signature = String.Empty

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width