Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FULLPATH() returns doubled server path on 64-bit network

Status
Not open for further replies.

OldxBaser

Programmer
Nov 5, 2009
24
We have run into a problem on 2 of our clients who upgraded to a 64-bit network with Windows7 workstations.

They experienced some "File not found..." types of errors, but we noticed the network path to the file was incorrect.

e.g., assume a drive on the server - \\Server1\Apps\
Map to this drive from a workstation as R:
Assume an application in R:\MyDir\

--- on a 32-bit network ---
FULLPATH() returns R:\MyDir

--- on a 64-bit network ---
FULLPATH() returns \\Server1\Apps\Server1\Apps\MyDir

I wrote a quick utility EXE and ran it on several different client networks; all 32-bit networks correctly returned the expected pathname.
But the 2 clients' 64-bit networks both returned the path with the doubled server-drive name.

My utility displays return values from FULLPATH(), CURDIR and SYS(16)

The client's network techs are in the dark on this.
I would greatly appreciate any input or suggestions.
Our large distributed multi-user application is compiled in VFP9.
 
i'm running Win7 64 bit and fullpath() returns as we'd expect.

Is the application running as administrator? Drive mappings can be different between what you see in windows explorer and what an application running as administrator has mapped.

So could your application not have the drive mapped and be working with a unc?

hth

nigel

 
Thanks Nigel, I will check with the client's tech and see if that is the case.
Roy
 
I don't understand what does a 32/64 bits network means. OS are 32/64 bits I can understand but what does it mean 64 bits network?

For example this computer is win7 64 bits. My notebook is winXP 32 bits. I tried mapping from both sides now and I got the result back as expected from both. Both mapping and UNC pathing work.

It may be as you say between 2 win7 64s. I cannot test that at the moment.

Cetin Basoz
MS Foxpro MVP, MCP
 
The client networks are both Server 2008 SBS x64 with Windows 7 (64bit) workstations.
 
OK I can later test it on Windows 2008 server R2 and w7 64.

(Unfortunately my graphics card was burnt this week, it will take sometime for me to acquire a new card and bring the test server back online)

Cetin Basoz
MS Foxpro MVP, MCP
 
I just tested it on a 64 bit Windows 2008 server and it works fine (Fullpath(".") returned the current folder currently).

Both on mapped drives and on 'real ones'

I was using VFP9 SP1

Regards

Griff
Keep [Smile]ing

There are 10 kinds of people in the world, those who understand binary and those who don't.
 
Thanks Griff ... I guess it must be related to some setting on the client systems. Will have to try and find out what that is now. Not my specialty area.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top