Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Servers > Windows Server
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Windows Server Please be sure to specify which version of Windows Server your question/post applies to.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Windows Server section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 19th, 2007, 11:07 AM
Authorized User
Join Date: Jan 2007
Location: , , .
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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?

Reply With Quote
  #2 (permalink)  
Old March 22nd, 2007, 04:30 PM
Friend of Wrox
Join Date: Nov 2004
Location: Port Orchard, WA, USA.
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts

My 1st suspicion would be a file permissions issue.
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Relative and Absolute Path question Johnger Pro Visual Basic 2005 1 September 8th, 2006 10:45 AM
how can i get the drive letter (e.g. F:) of the ne arif_1947 VS.NET 2002/2003 0 October 5th, 2004 12:07 PM
Relative Path Connection String fangai Classic ASP Databases 1 October 3rd, 2003 02:37 AM
LDAP and Relative Path problem Dmitriy Pro VB 6 0 July 21st, 2003 12:45 PM
DeleteFile(filespec) with relative path? brandon1974 Classic ASP Basics 1 July 19th, 2003 04:58 AM

All times are GMT -4. The time now is 01:53 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.