Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
App drive and path
Message
From
25/03/2011 19:37:55
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01270674
Message ID:
01505036
Views:
58
>>>Tore, I am already putting the backslash in my example above. This is not the issue I think. It has something to do with the double forward slashes and the single forward slash between the "adobe" folder and the file name.
>>>
>>>Asking for sys(5) + sys(2003) converts backslashes to double forward slashes. And the drive letter is converted to "file:" . Looks like UNC or something but I am not sure what I need to change in order for the path to the file to be correct for IE.
>>
>>Actually, "file:" is the protocol (instead of http: or ftp: or smb: or whatever:). If you're on an UNC, sys(5) gives you the \\server\path (which acts as your drive), and sys(2003) gives you the \path (note the initial backslash).
>>
>>Could you just try something like this:
>>
>>
lcFile=fullpath("adobe\"+pdffilename)
>>
>>IOW, let Fox convert the pieces into a real path, and then submit that to IE. Works with UNCs, just tried.
>
>Can you return local path based on the UNC path? (no file name) If so, how?

Define local. If you mean disk letter, that would work if you're trying to convert \\127.0.0.1\share\path into a drive path. For any other machine that accesses the same physical location, drive letters make no sense - mapping could be anything. The context of drive letters is the instance of the OS booted from those drives.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform