Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Renaming a directory
Message
From
08/04/2000 01:17:16
 
 
To
08/04/2000 01:04:23
Jill Derickson
Software Specialties
Saipan, CNMI
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00357178
Message ID:
00357179
Views:
13
Hi Jill

You can enclose long file names with spaces with ""....For example (COmmand Window) cd\ c:\"Program Files"




>I'm writing a program to convert file and directory names from DOS and WP 5.1 and am having trouble figuring out how to rename a directory in VFP...I need to rename a directory like c:\client\0016 to something like "Sablan vs. Smith"
>
>Can this be done in VFP/a batch file/Windows? I've looked at using !RENAME...but the spaces cause problems (also tried the "_" character). The new filename gets truncated at the space.
>
>It seems the RENAME command in VFP won't work on a directory.
>
>Help/input is appreciated. Thanks. J
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform