Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Curdir ()
Message
From
16/07/2008 20:22:13
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01331823
Message ID:
01331856
Views:
13
This message has been marked as the solution to the initial question of the thread.
>I created a function to remove the letter or volume front of the full path
>
>but sys(5) seems to remove more than only the volume name
>
>xPath = STRTRAN (FULLPATH(" "),SYS(5), " ")
>
>= MESSAGEBOX(xPath)

That's because in case of a network path, the "drive" has the syntax \\servername\sharename\. Now sharename may be a simple directory on a disk on the server, but you don't know exactly which disk is it there, because the disk drive letters are internal to the machine there. So in your case the A1 is not a directory name, it's a sharename. There may be no directory with such a name, because the share may be something like \\TheServer\SharedDocs and on TheServer machine it may mean "C:\DOCUMENTS AND SETTINGS\ALL GOOD USERS\DOCUMENTS". There's no SharedDocs directory anywhere; it's just a name of the share, an alias.

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