Jump to content

Refresh Desktop?


Recommended Posts

Before I start, I apologise if this has been answered before - I couldn't find it :ph34r:

I have a very simple script which:

  • Copies a file to a folder and overwrites the file already there.
  • Deletes the existing shortcut to it on the desktop.
  • Creates a new shortcut (with a new name) on the desktop
My problem is that, although the existing shortcut has been deleted, it isn't removed from the desktop until I right-click > Refresh (WinXP Pro).

Is there a way of doing a Desktop Refresh in AutoIt?

TIA :(

Edited by 8daysaweek.co.uk

[size=15]James :)[/size]www.8daysaweek.co.uk - A User-Focused OOo site, with Forums, Help Centre,Easy Installation CDs & OOo on USB Key

Link to comment
Share on other sites

Hiya,

got a similar idea, but instead of pressing Win+D to get to the Desktop i'd just activate it

Opt("WinTitleMatchMode",4)
WinActivate('classname=Progman')
Send('{F5}')

Btw: Why do you press Win+F5? Just F5 should do it?

Greetings,

ZeD

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...