General information
Category:
Coding, syntax & commands
Thanks Ed...I collected some info on the WSH and will take a look at it. J
>>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.
>>
>
>You can using the Scripting.FileSystemObject from the WSH (see my sig for ref sites) or the MoveFile() API call.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only