|
-
Oct 23rd, 2006, 03:38 AM
#1
Thread Starter
Fanatic Member
[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
-
Oct 23rd, 2006, 04:01 AM
#2
Re: get application information
-
Oct 23rd, 2006, 04:55 AM
#3
Thread Starter
Fanatic Member
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.
-
Oct 23rd, 2006, 05:28 AM
#4
Re: get application information
The Application.ExecutablePath contains the path to the application, including the application name.
I code C#....

-
Oct 24th, 2006, 05:50 AM
#5
Thread Starter
Fanatic Member
Re: get application information
Thanks for that...thanks for the inputs guys!
-
Oct 24th, 2006, 08:18 PM
#6
Thread Starter
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|