Issue with my VBscript need some assistance
I am having an issue with my VBscript and need your assistance. The main intention of this script is to check the existence of a shortcut file in %userprofile%\desktop\ location.
I created the script but when i execute it it says complaint all time even if the file exists or not exists. Could any one please help to correct y script ?
Set objFSO = CreateObject("Scripting.FileSystemObject")
If objFSO.FileExists("%Userprofile%\desktop\test 1.lnk") Then
Even if the test 1.lnk is present or not present the script writes compliant which is not right .
If the shortcut file is present it should say compliant else non compliant.
Thanks in advance.