Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there an API call to rename a folder
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00178253
Message ID:
00178280
Views:
24
>>local lcCommand
>>lcCommand = '[move "' + lcOldDirectory + '" "' + lcNewDirectory + '"]'
>>run &lcCommand
>
>What are the square brackets surrounding your DOS command for?

Rich,

FoxPro has three sets of string delimiters, ', ", and [] tha above line uses them all in order to get lcCommand as a string that can be used by the RUN command. The " tacked around the directory names allows spaces to appear in the name.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform