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 09:57:13
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00082035
Message ID:
00082063
Views:
28
>>Hi, all
>>
>>How to change directory name in VFP5.0a
>>
>>using a RUN command ?
>>
>>please help me
>
>You can use the Windows API call MoveFile to change the directory name. The declaration is as follows:
>
>
>DECLARE SHORT MoveFile IN Win32API;
>  STRING @lpcurrentname, STRING @lpnewname
>lcolddir = "C:\VFP\OLD"
>lcnewdir = "C:\VFP\NEW"
>= MoveFile(@lcolddir, @lcnewdir)
>
>
>The only potential problem would occur if you have a file without an extension that matched the subdirectory name.
>
>hth,

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
Ç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