totty3478
New member
Hi,
i use a variable in my VB.NET program that holds the location of the Program's install folder, this variable is defined by the
My.Computer.FileSystem.CurrentDirectory
function. However, my pc is on a domain and has a Home folder mapped to the H: drive, when the user logs on windows runs programs from the Home drive, this is standard for windows domain pc's. The problem is that
My.Computer.FileSystem.CurrentDirectory
then becomes H:\ and my Program folder variable points this location. My program has a dependancy on files that are stored in the program's install folder and during logon these files are not found.
the program starts due to a registry entry at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
and this string value does hold the true location of the progam executable.
I have used an IF statement to compare
My.Computer.FileSystem.CurrentDirectory with the value from the run section of the registry and if they are different then use the registry value and not
My.Computer.FileSystem.CurrentDirectory, but the probglem remains, during logon
My.Computer.FileSystem.CurrentDirectory is always H:\
Has anyone seen this problem before and can you help. Thanks
i use a variable in my VB.NET program that holds the location of the Program's install folder, this variable is defined by the
My.Computer.FileSystem.CurrentDirectory
function. However, my pc is on a domain and has a Home folder mapped to the H: drive, when the user logs on windows runs programs from the Home drive, this is standard for windows domain pc's. The problem is that
My.Computer.FileSystem.CurrentDirectory
then becomes H:\ and my Program folder variable points this location. My program has a dependancy on files that are stored in the program's install folder and during logon these files are not found.
the program starts due to a registry entry at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
and this string value does hold the true location of the progam executable.
I have used an IF statement to compare
My.Computer.FileSystem.CurrentDirectory with the value from the run section of the registry and if they are different then use the registry value and not
My.Computer.FileSystem.CurrentDirectory, but the probglem remains, during logon
My.Computer.FileSystem.CurrentDirectory is always H:\
Has anyone seen this problem before and can you help. Thanks