Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there an API call to rename a folder
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00178253
Message ID:
00178562
Views:
34
Hi again!

To move a file using Windows Scripting:
md c:\bar
md c:\foo
md c:\foobar

fso = CreateObject("Scripting.FileSystemObject")

* Move folder bar into folder foo
fso.MoveFolder("c:\bar", "c:\foo\")

* Move folder foo (and thus foo\bar) into folder c:\foobar
fso.MoveFolder("c:\foo", "c:\foobar\")
>Yes, that is exactly what I meant.
>
>FYI: The MoveFile API call allows you to specify a fully qualified path for the 'from' path and the 'to' path.
>
>Regardless, your quick response has saved me hours of development time.
kenweber
GCom2 Solutions
Microsoft Certified Professional

Previous
Next
Reply
Map
View

Click here to load this message in the networking platform