Re: Renaming a folder in Win32Lib
- Posted by ArthurCrump Feb 11, 2011
- 1321 views
AndyDrummond said...
I am using Euphoria 3 still, with Judith's IDE and Win32Lib by almost everyone. I'm in XP SP3. I'm writing a program to vet my folder & file names for backup with Amazon, who don't like some characters that I can use OK.
Trouble is, I don't see how to rename a directory or folder. No CMD command, nothing in Win32Lib, so I wondered if one of you knowledgeable guys would know how to do it? Any ideas welcomed ...
win32lib does have a function, but it is called moveFile, which can be used to move a file or folder to a new location on the same volume or to rename it. The return code is True if successful or False if it fails.
I have tried it (although on Euphoria version 4 and win32lib to match) and it does work on directories.
Arthur