Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Renaming Dir
Message
From
21/05/2001 10:53:02
Patrick O'Neil
American Specialty Information Services
Roanoke, Indiana, United States
 
 
To
21/05/2001 10:28:20
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00509442
Message ID:
00509461
Views:
17
>Is there a way to rename a directory (ie simulate the right click->rename in win 95 98. Can it be done from inside VFP? can it be done in a the batch/icon file that calls up a VFP app?
>
>
>TIA
>CG


this worked in FP3.0 but have not tried it in VFP6.0

SET DEFAULT TO (Dir_Spec)
RENAME "DBFS." TO (Other_Dir_File_Name)

Dir_Spec is full path to parent directory
substitute current dir name for "DBFS."
and Other_Dir_File_Name is you new directory name.
patrick
Previous
Reply
Map
View

Click here to load this message in the networking platform