Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating a folder programatically
Message
From
12/10/2014 01:46:51
 
 
To
12/10/2014 01:28:09
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01609180
Message ID:
01609182
Views:
64
You can use the MD/MKDIR command. This works with mapped drive letters, or UNCs e.g.
MD \\ServerName\ShareName\SomeNewFolder
One cool thing about the VFP MD command is it can create multiple levels of folders in a single command:
* Suppose \\ServerName\ShareName\SomeFolder does not exist
MD \\ServerName\ShareName\SomeFolder\1\2\3
* creates all folders down to \3, in one shot
Of course, you need appropriate permissions on the share to be able to create folders.

>Environment info should have read Windows vista, 7, and 8 with VFP, across a simple windows local network ... and creating the folder on a remote machine on the network.
>
>>I can create a file from inside VFP. Can I create a folder (directory) programmatically (without user intervention)?
>>
>>Bob
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform