Sign in to follow this  
Followers 0
webxt

File rename

7 posts in this topic

#1 ·  Posted (edited)

Hi guys!

How can I rename files like recycle bin or my computer ?

For other files, I know, with File move() but in this situation ?

LE: Windows XP

Regards,

webxt

Edited by webxt

Share this post


Link to post
Share on other sites



in windws xp or vista?

Share this post


Link to post
Share on other sites

and what mean, do u rename file with FileMove()?

Share this post


Link to post
Share on other sites

Yes, something like this

FileMove ( "C:\1.txt", "C:\2.txt" )

Do you know other method ?

Share this post


Link to post
Share on other sites

for rename standard icons like recycle and my comp its required enable it in windows registry:

[HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\ShellFolder]
"Attributes"=hex:70,01,00,20
"CallForAttributes"=dword:00000000

i dont know other system but u must to restat the machine after.

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

maybe u can try with FileSetAttrib

maybe filemove dont work if the file is "R" = READONLY or "S" = SYSTEM, check with FileGetAttrib on recycle bin and try to set like a normal file.

Edited by Kurtferro

Share this post


Link to post
Share on other sites

Ok, thank you.

I will try to figured out.. any other methods ?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0