quick question....

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • pswauger
    Forum Member
    • Apr 2005
    • 16

    quick question....

    I dont think there is a way, but I am going to ask anyway. Is it possible to force a desktop refresh? I have a line of code that removes a shortcut from the user's desktop, but the icon doesnt disappear until the desktop is refreshed.
    Thanks.
  • Intrigued
    Indigo Rose Customer
    • Dec 2003
    • 6138

    #2
    I had an idea and it seems to work.

    Try this code (with the proper folder name of course, set a variable if you have too to capture the folder name):

    Code:
    Folder.Find(_DesktopFolder, "[I]FolderNameHere[/I]", true, nil)
    I find that it refreshes the Desktop!

    :yes
    Intrigued

    Comment

    • Intrigued
      Indigo Rose Customer
      • Dec 2003
      • 6138

      #3
      This works too (forget looking for the folder):

      Code:
      Folder.Find(_DesktopFolder, [B]"*.*"[/B], true, nil)
      Intrigued

      Comment

      • pswauger
        Forum Member
        • Apr 2005
        • 16

        #4
        Thank

        Thanks that worked great never would have thought of that.

        Comment

        • qwerty
          Forum Member
          • Oct 2006
          • 345

          #5
          i couldnt get this to work

          has something changed in the latest versions or in windows that causes this to not have the side effect of refreshing the desktop ?

          Comment

          Working...
          X