Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Check if the shortcut exists or Not?
#8
Solved: 11 Years, 4 Months ago
This works fine at my side, but I doubt in your query. if you are searching in startmenu winzip shortcut must be in 'startmenu\programs\winzip'

may be you can try replacing "." with the exact computer name, see if it works,

I just noticed that we are going on a longer and bit complex raod, however it can be done in a very simple way.
see the code below
Code:
Set objFSO1 = CreateObject("Scripting.FileSystemObject")
If objFSO1.FileExists("C:\Documents and Settings\All Users\Start Menu\Programs\WinZip\WinZip.lnk") Then
msgbox true
End If

let me know if this helps.

Reply


Messages In This Thread
RE: Check if the shortcut exists or Not? - by Saket - 06-21-2010, 10:43 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Report Viewer showing hundreds of WebElement.Exists? themoon 1 2,347 03-09-2016, 02:43 PM
Last Post: vinod123
  How to check whether data exists in excel.. venkatesh9032 1 3,086 03-06-2014, 04:37 PM
Last Post: supputuri
  Object does not exists shwetasharma 4 9,123 03-01-2013, 01:05 PM
Last Post: shwetasharma
  Verifying the value exists and if not, wait up to 5min HeZma 3 4,089 02-25-2012, 12:21 PM
Last Post: rajpes
  How to prove if an object exists? lucster 3 4,955 07-07-2011, 10:24 PM
Last Post: rajpes

Forum Jump:


Users browsing this thread: 1 Guest(s)