Subject: | Re: SetDir()
| Date: | Mon, 19 Apr 2021 08:26:29 -0500
| From: | Mark Bannister <markRemove@THISinjection-moldings.com>
| Newsgroups: | pnews.paradox-programming
|
Not sure what you mean by current alias. startUpDir ( ) gets the
startup directory.
If you need the current Windows working directory use the filesystem
type workingDir(). Not sure if this leaks or not.
On 4/15/2021 5:35 PM, Peter wrote:
> from help files
> getaliaspath(const aliasname String) String
>
> "aliasname" is what I don't know, how do I find the current alias?
>
>
>
> On 4/15/21 1:56 p.m., Mark Bannister wrote:
>> gtaliaspath() ?
>>
>> On 4/15/2021 4:44 PM, Peter wrote:
>>> var
>>> fsy filesystem
>>> strCurrentDirectory string
>>> endvar
>>>
>>> 1) strCurrentDirectory = fsy.getDir()
>>> 2) fsy. SetDir(:PRIV:)
>>> 3) fsy.findFirst("file1")
>>> 4) fsy.SetDir(strCurrentDirectory) ;//doesn't work
>>>
>>> #4 doesn't work because getdir() returns the string with single "\"
>>>
>>> So what I wuld like to do is capture the current alias. How do I do
>>> that? Thank you for any help.
>>>
>>>
>>> Peter
>>
--
Mark Bannister
|