Ok so i like tomake(sic) file copyable but not deleteable. I just dont want to any1 delete my icons on desktop, but let them access to them(read and write).
Now we are getting somewhere!
My first suggestion is to create a guest account, rather than giving users you may not trust access to your account. This is because they could just change your password, and thus you are SOL.
If your account is an Admin account and not a limited user, your final result is impossible. By definition, an Admin account has full permissions to any object on the system, either explicitly or implicitly through "Take ownership".
If you insist on this route:
To protect your icons on your desktop, you'll need to go into Explorer and click your user folder. Your desktop folder should be in there. For example, look under C:\users*username*\Desktop.
Right Click, then go to Properties/Security.
Click Advanced and uncheck "inherit permissions" and in the ensuing dialog box, press Copy. This will make a copy of the existing permissions.
Next click your account name and press Change permissions.
Turn off Delete files/folders, and take ownership permissions.
Press OK. Lastly, click a check mark in "apply to Child objects".
1What OS is this? – Chris Eberle – 2011-11-29T14:55:36.757
@Chris: Windows XP. – Blender – 2011-11-29T14:57:01.780
4What does this have to do with C++ ? – Paul R – 2011-11-29T14:57:42.433
1Also, wouldn't a user absolutely hate it when an application makes undeletable files? – None – 2011-11-29T15:03:23.977
icacls didn't exist until Windows Vista. You need to use cacls instead, or the GUI. – Harry Johnston – 2011-11-30T02:49:26.880