Jump to content
Sign in to follow this  
webxt

File rename

Recommended Posts

webxt

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
Kurtferro

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

Share this post


Link to post
Share on other sites
webxt

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
Kurtferro

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
Kurtferro

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
webxt

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.