I came across an interesting bug on my Windows XP Pro computer for which I am the administrator. The following script doesn't show my hibernation file which is in fact there. It must be because the file is hidden, system, or a protected operating system file. As a diagnostic measure I checked my explorer view settings and I even have it enabled to show protected operating system files. However, an application should be able to detect that file even if explorer won't show it.
$Hibernate_Path = StringLeft(@WindowsDir, 2) & "\hiberfil.sys" MsgBox(4096, "$Hibernate_Path", $Hibernate_Path) ;Debug this isn't bloody working! If FileExists($Hibernate_Path) = 1 Then MsgBox(4096, "Debug", "The hibernation file exists!") Else MsgBox(4096, "Debug", "The hibernation file doesn't exist!") EndIf
This bug exists both in the current stable and beta versions (126.96.36.199 at the time of writing).