|
-
Jul 14th, 2004, 02:41 AM
#1
Thread Starter
Hyperactive Member
How to block deleting Shortcuts onWindows Desktop?
Last edited by raladin; Mar 29th, 2014 at 08:37 PM.
-
Jul 14th, 2004, 05:28 AM
#2
There should be a directory called:
C:\Documents and Settings\All Users\Desktop\
Set the permissions on this directory so only the Administrator can write and delete files. Any shortcuts you put in this directory will then be visible to all users, but they will not be able to delete them.
-
Jul 15th, 2004, 10:30 AM
#3
Thread Starter
Hyperactive Member
Last edited by raladin; Mar 29th, 2014 at 08:37 PM.
-
Jul 15th, 2004, 12:03 PM
#4
Thread Starter
Hyperactive Member
Last edited by raladin; Mar 29th, 2014 at 08:37 PM.
-
Jul 15th, 2004, 08:40 PM
#5
Make the shortcuts read-only or apply the permissions still, just make sure you allow yourself to turn them back on when you need to modify them.
I use Microsoft Visual Basic 2005. (Therefore, most code samples I provide will be based around the .NET Framework v2.0, unless otherwise specified)
-
Jul 16th, 2004, 02:39 AM
#6
Thread Starter
Hyperactive Member
Last edited by raladin; Mar 29th, 2014 at 08:37 PM.
-
Jul 16th, 2004, 02:50 AM
#7
1. Open the user's account in My Computer (C:\Documents and Settings\User1\) and right-click the Desktop folder.
2. Click the Security tab (If this is not visible, click Cancel and then click the Tools menu, Folder Options..., View, uncheck Use Simple File Sharing (Recommended), redo above procedure to get back to the security tab).
3. Click Add....
4. Type in the users username and click OK.
5. Click Advanced.
6. Select the user and click Edit...
7. Uncheck Delete, Delete Subfolders and Files and Change Permissions under the Allow column.
8. Click OK, OK, OK.
I use Microsoft Visual Basic 2005. (Therefore, most code samples I provide will be based around the .NET Framework v2.0, unless otherwise specified)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|