Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating a directory
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Creating a directory
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01110310
Message ID:
01110310
Vues:
49
Hi everybody,

I have the following code:
if not directory(thisform.cInputDirectory)
			md (thisform.cInputDirectory)
		endif
		lcDir = thisform.cInputDirectory + "Batch_" + ;
				transform(crsBatch_Imports.iBatch_Number)
		if not directory(m.lcDir)
			md (m.lcDir)
		endif
The cInputDirectory has a \ at the end.

The first portion of the code returns an error "The directory already exists" on md (thisform.cInputDirectory) command.

What could be the problem? \ at the end or user rights? If the second, the error message is misleading.
If it's not broken, fix it until it is.


My Blog
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform