Hi everyone....
Any function to rename a directory ?
Or how to do it with hmg coding ?
Tia
Best rgds
Chang
Rename a directory
Moderator: Rathinagiri
Rename a directory
Just Hmg It !
-
- Posts: 245
- Joined: Sat Aug 02, 2008 5:03 pm
Re: Rename a directory
Hi Chang
FRename( cOldFile/folder, cNewFile/folder )
Do not end a file or directory name with a space or a period.
Although the underlying file system may support such names, the Windows shell and user interface does not.
Directory names are stored by the file system as a special type of file, but naming rules for files also apply to directory names.
Carlos
FRename( cOldFile/folder, cNewFile/folder )
Do not end a file or directory name with a space or a period.
Although the underlying file system may support such names, the Windows shell and user interface does not.
Directory names are stored by the file system as a special type of file, but naming rules for files also apply to directory names.
Carlos
Regards/Saludos, Carlos (bcd12a)
- mustafa
- Posts: 1160
- Joined: Fri Mar 20, 2009 11:38 am
- DBs Used: DBF
- Location: Alicante - Spain
- Contact:
Re: Rename a directory
Hi Chang
Carlos Britos best option
another alternative option
xange1 := "C:\Test\New_Folder1"
xange2 := "C:\Test\New_Folder2"
FRENAME( xange1 , xange2 )
RENAME &xange1 TO &xange2
Regards
Mustafa
Carlos Britos best option
another alternative option
xange1 := "C:\Test\New_Folder1"
xange2 := "C:\Test\New_Folder2"
FRENAME( xange1 , xange2 )
RENAME &xange1 TO &xange2
Regards
Mustafa
Re: Rename a directory
Thanks Mr. Carlos and Mr. Mustafa
It works as suggested...
My problem is :
I need to rename the current directory
any suggestions
TIA
best rgds
Chang
It works as suggested...
My problem is :
Code: Select all
FRename( "..\abc", "..\def")
any suggestions
TIA
best rgds
Chang
Just Hmg It !
Re: Rename a directory
Chang, if you are running the exe from current directory or any file opened in current directory, win os will not allow you to rename the current directory.
Regards,
Anand
Regards,
Anand