Results 1 to 6 of 6

Thread: [RESOLVED] get application information

  1. #1

    Thread Starter
    Fanatic Member daimous's Avatar
    Join Date
    Aug 2005
    Posts
    657

    Resolved [RESOLVED] get application information

    hi guys! how can i get the name of my application the path were it resides programmatically?
    Last edited by Hack; Oct 24th, 2006 at 06:21 AM. Reason: Added [RESOLVED] to thread title and green "resolved" checkmark

  2. #2
    Frenzied Member mar_zim's Avatar
    Join Date
    Feb 2004
    Location
    Toledo Cebu City.
    Posts
    1,416

    Re: get application information

    application.startuppath

  3. #3

    Thread Starter
    Fanatic Member daimous's Avatar
    Join Date
    Aug 2005
    Posts
    657

    Re: get application information

    thanks but how about the filename? becuase startup Gets the path for the executable file that started the application, not including the executable name.

  4. #4
    Hyperactive Member vbcode1980's Avatar
    Join Date
    Nov 2005
    Location
    Anywhere the wind blows
    Posts
    365

    Re: get application information

    The Application.ExecutablePath contains the path to the application, including the application name.
    I code C#....

  5. #5

    Thread Starter
    Fanatic Member daimous's Avatar
    Join Date
    Aug 2005
    Posts
    657

    Re: get application information

    Thanks for that...thanks for the inputs guys!

  6. #6

    Thread Starter
    Fanatic Member daimous's Avatar
    Join Date
    Aug 2005
    Posts
    657

    Re: [RESOLVED] get application information

    Is the code below will make my application to run automatically when windows start? i put that code under form_load event.

    Code:
    Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", Application.ProductName.ToString(), Application.ExecutablePath.ToString());

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