Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Servers > Windows Server
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old March 19th, 2007, 11:07 AM
Authorized User
 
Join Date: Jan 2007
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
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

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





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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.