Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set default to 1

Status
Not open for further replies.

mimosa

IS-IT--Management
Apr 4, 2002
25
US
Hi,
Our application is under the server which one uses temporary files which are under C: \ , to generate the application which will be the path by défaut(set default to)?
Thanks for any help and for your attention
 
I'm not sure what your question is but here is how the command works:
Set Default to c:\windows
Plug in the correct directory. This will put the app in the right dir.
 
PUBLIC gcHomeDirectory, gcDataPath
** Assume the EXE or APP is in gcHomeDirectory
gcHomeDirectory = JUSTPATH(SYS(16,0))
SET DEFAULT TO (gcHomeDirectory)

** Assume data is in DATA direcory within gcHomeDirectory
gcDataPath = "DATA\"
SET PATH TO SET("PATH")+";"+gcDataPath
**
Hope this guides you to set the default directory and the path.
ramani :-9
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com
 
Hi,
Thanks for your reply
But Our data base is under the server [F:\] whereas I use a temporary file under [C:\], how to declare the command " set default to", if I declare [set default to F:\... ] I can't reach to the file which is under [C:\].
Many thanks for your attention.
 
The key here, as Ramani suggested is not the 'set default to' but the path. Your default directory can be the 'f:\' drive but your path can include whatever directories you want ie

set default to f:set path to f:\;c:\temp;f:\data

these commands would set your default directory to 'f:\' and your working directories to 'f:\', 'c:\temp' and 'f:\data'. The path command can contain a number of paths each separated by a semi-colon.

Hope this helps

Gem aka "the new KID"
 
You can reach data files specified in your path. The files created will be in your SET DEFAULT directory unless, you specify the path. So you can work either way, stay in metwork and create temporary file in C with full path specified, or default to temporary directory and set the data path to network folder. Depending on which is less of overhead, you can decide this.

ramani :-9
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com
 
You can also :

use f:\kjfdjfal.dbf
set directory to c:\data\....

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top