CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Guest

    How to protect the desktop icons from being deleted???

    Hi, guys,

    How can I detect by a program that a user is trying to delete an icon on the desktop, and forbid him doing so by giving him a warning,
    and resuming the tesktop to the original.

    Any answers would be appraciated!




  2. #2
    Join Date
    Nov 1999
    Location
    Sacramento
    Posts
    9

    Re: How to protect the desktop icons from being deleted???

    I think the icons you are concerned about are the result of shortcuts being in the windows\desktop directory (a little more complicated if you have multiple profiles on the computer). If the shortcut files have the read-only bit set, that might accomplish what you are trying to do. I'd just do it from dos with ATTRIB or CHMOD

    Dave Straayer
    Varatouch, Inc.

  3. #3
    Guest

    Re: How to protect the desktop icons from being deleted???

    But changing the attribute of a file does not protect it from being deleted. The system amy prompt you a messagebox and you may still delete it.

    Can you suggest me better methods?



+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts



HTML5 Development Center

Click Here to Expand Forum to Full Width