Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TooltipText and Pathnames
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Miscellaneous
Thread ID:
01057614
Message ID:
01058225
Views:
13
>(a) AFAICS it doesn't work because the parameter to GetFile() requires a path in the first place,
>
>Not if the file's in the current working directory.

True. But if it's not you get an OLE error and if it is you may as well have used CURDIR() in the first place :-)

>(b) we can't rely on Scripting being available
>
>Well, if anyone is still running Windows 95...you've got a point. However, it's a required file for Windows 2K.

It's installed by default but 'required'? IAC it's the work of a moment for an admin to delete Wscript.exe and I'm afraid we certainly come across too many of those to rely on it being available.

>One question. Do you set the temp path in config.fpw? I do. I assume that you're do this for the same reason I set it...Cleanup old tmp files.

It's set in the registry on my development machine and SYS(2023) returns this path. We don't specify a path at installation so for most users it tends to be the 'Documents and Settings' pathed temp folder.
The problem seems to be that SYS(2023) relies on a call to Windows GetTempPath() if there is no VFP environmental setting and it is this that is returning the DOS path name. Another implication of the use of GetTempPath() is that SYS(2023) will not neccesarily return a valid path - something I had not previously been checking for...
Regards,
Viv
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform