Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there an API call to rename a folder
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00178253
Message ID:
00178285
Vues:
35
>>>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.

I know about Fox's string delimiters, but I'm still wondering why the brackets in the above example. Why wouldn't:

lcCommand = 'move "' + lcOldDirectory + '" "' + lcNewDirectory + '"'

work? Seems to me like you used an extra pair of delimiters.
Rich Addison, Micro Vane, Inc., Kalamazoo, MI
Relax, don't worry, have a homebrew.
- Charlie Papazian, The New Complete Joy of Home Brewing
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform