System.AppDomain.CurrentDomain.BaseDirectory
hi ,
i've a problem referring to my application's folder.
my .NET application's folder is c:\programs\myApplication\.
i put my application in the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Run for automatic start.
inizializing my app's global variables, i read my app's folder by the property System.AppDomain.CurrentDomain.BaseDirectory. if i use this property starting the app manually it works.
but this property does not work when my app starts automatically on window's startup because the property value is C:\.
i can't understand.
antonio
|