Jump to content

Check a desktop icon exits


Recommended Posts

What i'm trying to do is test if a shortcut icon does not exist on a desktop then i will log an error to file. I changed the CLMS icon to a different name. what is the code to check if the CLMS icon does not exist and if so I can log an error. I tried the above code, but it fails to run with an error message as the CLMS icon does not exist.

what is the code for this please

Link to comment
Share on other sites

this is the format

$location = **put the location here**

If Not FileExists($location) then

_FileWriteLog("C:\Text.log", "Menu Setup incomplete")

exit

endif

8)

<{POST_SNAPBACK}>

Don't Forget to put this at the top of the script.

#Include<File.au3>

Also if the file is a shortcut on the desktop called CLMS then.

$Location=@DesktopDir & "\CLMS.lnk"
HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.
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...