Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating a folder programatically
Message
De
12/10/2014 01:46:51
 
 
À
12/10/2014 01:28:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01609180
Message ID:
01609182
Vues:
63
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform