Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to change directory name in VFP5.0a ?
Message
From
02/03/1998 10:45:52
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00082035
Message ID:
00082077
Views:
27
>>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.

Yes George, it's just an addition to yours. Just wanted to mention DOS ren is capable of changing LFN (of course if version 7.0 and up) via VFP run also.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform