FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour GetModuleFilename() returns UNC
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
GetModuleFilename() returns UNC
Posted: Wed Sep 22, 2010 06:56 AM

Hi guys,
Our user runs our program from a Win7-64 bit workstation. Instead of the mapped drive letter, it returns the path in UNC format (\server name\folder...). Any idea how to make it always return the mapped drive instead of UNC?

TIA

FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
Re: GetModuleFilename() returns UNC
Posted: Wed Sep 22, 2010 08:13 AM

For the time being, disabling UAC seems to be the easiest way to get my app working again.

This seems to explain the cause, http://blogs.msdn.com/b/cjacks/archive/ ... vista.aspx

This workaround is not ideal though. Ideally I would like user to be able to have their UAC but at the same time won't cause mapped drives to be hidden, resulting in a UNC to be returned. So anyone with any ideas is welcome :)

TIA

FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour

Continue the discussion