Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with the directory command
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Problem with the directory command
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01476908
Message ID:
01476908
Vues:
116
Hi everybody,

I have a code
if not directory(.cLocalDataPath)
  lcPath = .cLocalDataPath
  MD (m.lcPath)
endif
MD is failing with the file or directory already exists.

The cLocalDataPath = 'c:\ProgramData\ExtraPath\ExtraPath\Data\'

Do you know if the \ at the end is causing the problem?

Or why will MD fail?
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