Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get path to a directory
Message
From
12/12/2001 16:18:54
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
12/12/2001 16:04:03
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00593473
Message ID:
00593552
Views:
24
This message has been marked as a message which has helped to the initial question of the thread.
>>I think SYS(2014) is the closet you can get.
>>
>Thanks Sergey, I've tried sys(2014) with home(), sys(2003), sys(2004), and fullpath(). The problem is that if the file can't be located in the MS-DOS path, a path and the file name are returned as if the file had been found in the current default directory or in the root directory. It is very misleading. I must be doing something wrong. Somehow I am not getting the combinations correctly entered to return what I need. I am trying to locate the directory PROGS from this position:
>
>If I am in c:\profiler\data and I need to get to c:\pro32\progs, it should return "..\..\pro32\progs", but I can't seem to get it.
>
>
>Or if I am in c:\pro32 and I need to get to c:\pro32\progs.
>
>No matter what I enter, I cannot get it to return '..\progs' or even the fullpath.
>
>Sheesh! This is so frustrating....
>Tracy
Tracy,
Somewhat depending on how your app is called.

ShellExecute() or run /n called app would have its own dir as application.servername. If was called somthing like do ... then servername would be callers. Since caller could pass its default path I think first one is what you're seeking ?
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform