Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Directory questions
Message
From
18/11/1998 06:12:50
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00158502
Message ID:
00158659
Views:
15
>Is the dir that the executable was started from automatically the default dir if there's no config.fpw?
>
>If not, is there a way to determine what dir the exe was started from?

FULLPATH(CURDIR()) is the start directory for the application if no SET DEFAULT or CD statement has been executed.
cAppDir = FULLPATH(SYS16,0))
cAppDir =LEFT(cAppDir,RAT('\',cAppDir)-1)
is the location of the top-level executable file.

>
>Can you set the properties found in config.fpw, such as setting the temp file dir from within the app rather than the config.fpw?
>
>Is there some way to get CD, MD, RD to work with dirs that have spaces in their names?

Yes = wrap them in quotes, or store them in a variable and use name expansion:

CD "C:\This is a\Very silly dirname"

cMyDir = "\\MyServername\SomeShare\a silly\sub-dir"
CD (cMyDir)

>
>I think that's it for now. :)
>
>Thanks,
>
>-Michelle
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform