Drive letter and relative path \Program Files
Our applications client machine OS is Windows 2000 SP4
Application looks for a specific file called FileXYZ in '\Program Files\CompanyName\AppName\FolderName\FileXYZ'. I did not wanted to hard code drive letter C in front of the path.
This path value is supplied at the run time from database. Application works fine on all client machine except one client machine. The client machine in question, appication throws error 'File not found'
I verified, file is physically there at the location. So I opened windows explorer and paste the path manually '\Program Files\CompanyName\AppName\FolderName\FileXYZ' in address bar and rather than going to C:\Program Files\Company..... windows explorer tries to find the file H:\Program Files\Company.....resulting into same file not found error.
Here, H is mapped network drive and it does NOT have 'Program Files' folder. I check environment variables and it looks fine.
Anybody has any idea why it happens?
|