
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Foxlib v1.0 - <b>setdir</b>
[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
SETDIR
Syntax: SETDIR
Use: To set a subdirectory.
Parameters: The directory you want to set (e.g. C:\BACKUP).
Returns: The first character in the sending parameter will
have a "Y" (i.e. true) if the subdirectory was set,
and a "N" if the subdirectory was not set. If you
did not pass the parameter correctly (e.g. FOXLIB
= "\backup"), your sending parameter will be
unchanged.
Example: . load c:\FOXLIB\setdir
. FOXLIB = "C:\BACKUP"
. call setdir with FOXLIB
. ?substr(FOXLIB,1,1) = "Y"
.T.
. rele modu setdir
From this example, the subdirectory was set to
c"\backup."
Example: if substr(FOXLIB,1,1) = "Y"
copy to c:\backup\filecopy
endif
From the above example, you could first verify that
a subdirectory exists. If it does, you could then
copy information to it.
Notes: Please note that when you use the SETDIR FOXLIB
command, you will make that subdirectory the current
subdirectory.
See Also: CREATDIR REMOVDIR
Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson