Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
2 questions: VFP and FPD
Message
From
03/08/1998 14:10:54
 
 
To
02/08/1998 05:09:02
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00123358
Message ID:
00123596
Views:
28
>The other question is that I have an application written in FPD and it does some files and directories managament in order to work with several configurations, I did the management of the directories by using lines of codes like RUN MD MYDIR or RUN RD MYDIR but I don't want to use DOS' command instead, I would like to use some library for FPD that does that kind of task like creating or removing directories if there is a free library, please let me know. Or I make one myself, i have some knowledge of C but I don't know how to call those DOS' routines.

The following are now native foxpro commands:

RD | RMDIR Command
Removes a directory or folder from disk.

Syntax

RD cPath | RMDIR cPath

Arguments

cPath Specifies the name and location of the directory or folder to remove from disk.

Remarks

Visual FoxPro generates an error message if you attempt to remove a directory or folder that is not empty.

CD | CHDIR Command

Changes the default Visual FoxPro directory to the directory you specify.

Syntax

CD cPath | CHDIR cPath

Arguments

cPath Specifies one of the following:

· A drive designator.
· A drive designator with a directory.
· A child directory.
· Any of the above using MS-DOS shorthand notation ( \ or ..). When you include .. to change to the parent directory, you must include a space between CD or CHDIR and the two periods.

Remarks

Use CD or CHDIR to specify the default Visual FoxPro directory. Visual FoxPro searches for files in the default Visual FoxPro directory. If Visual FoxPro cannot find a file in the default directory, it then searches the Visual FoxPro path if one has been specified. Use SET PATH to specify the Visual FoxPro path.

If you create a file and don’t specify where to place it, the file is placed in the default Visual FoxPro directory.

MD | MKDIR Command

Syntax

MD cPath | MKDIR cPath

Arguments

cPath Specifies a directory or a path (with a drive designator and directories).

If cPath is a directory without a drive designator, the directory is created as a subdirectory of the current Visual FoxPro default directory.

Remarks

Visual FoxPro generates an error message if you attempt to create a directory that already exists.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform