when i run the script by Sealeopard is confirms the existence of the folder however when i run the following code it doesn't remove it. rather it jumps from the MESSAGEBOX to the DOES NOT EXIT line.....weird..


Break off

$programpath= "C:\Program Files\Pivotal\Relation"

If Exist($programpath) = 1

MessageBox ("", "Please wait while Relationship is uninstalled","ESI INT'L", 10, 0, 1)

Shell 'C:\WINDOWS\uninst.exe -y -f"C:\Program Files\Pivotal\Relation\DeIsL1.isu"'

$rc = Shutdown("", "System is being rebooted to enable new settings.", 300, 0, 1)

Sleep 6

Else
? $programpath + "Does not Exist"
EndIf