hi guys! how can i get the name of my application the path were it resides programmatically?
Printable View
hi guys! how can i get the name of my application the path were it resides programmatically?
application.startuppath
thanks but how about the filename? becuase startup Gets the path for the executable file that started the application, not including the executable name.
The Application.ExecutablePath contains the path to the application, including the application name.
Thanks for that...thanks for the inputs guys!
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());