Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to change directory name in VFP5.0a ?
Message
 
To
02/03/1998 09:57:13
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00082035
Message ID:
00082072
Views:
22
>You could also use the "ren" command.
>
>! ren olddir newdir
>* If anyone of these is a long file name having spaces then use quotes
>! ren "\My long filename directory name" "My other LFN dir"
>
>cetin

Cetin,

I don't think that you can change the names of directories with long names using the DOS rename command. At least I haven't been able to do it. There's another thing about using the MoveFile call, you can tell whether or not the call succeeded by checking the return value. If it's not zero, then the change was successful, otherwise it failed. Using RUN, you have to check for the existence of the directory after executing the run. Fainally, you have to deal with the DOS window. A minor point to be sure, but there nevertheless.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform