Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using MKDIR with a variable
Message
From
20/07/2005 15:41:23
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Using MKDIR with a variable
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01034401
Message ID:
01034401
Views:
129
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.
Next
Reply
Map
View

Click here to load this message in the networking platform