Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using MKDIR with a variable
Message
De
20/07/2005 15:41:23
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Using MKDIR with a variable
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01034401
Message ID:
01034401
Vues:
128
I am trying to make a new directory based on a variable. For example:
cMainDir = GETDIR()
cNewDir = cMainDir + 'Dump_'+TRAN(MONTH(DATE()))+'-'+TRANS(DAY(DATE()))
MKDIR &cNewDir
This works fine if cMainDir does not contain any spaces. If it contains spaces, as in 'c:\Visual Fox Pro\' then it only creates the directory 'c:\Visual'.

Is there a better way of doing this?

Thanks.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform