Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with the directory command
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Problem with the directory command
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01476908
Message ID:
01476908
Views:
115
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
Next
Reply
Map
View

Click here to load this message in the networking platform