open notepad, click START / RUN / type notepad.
copy and paste this code in the file, and save as YourFile.bat - Remove .TXT extension or else it wont work...
Code:
@ECHO OFF
title anti-shutdown
color a
cls
echo Watch...
shutdown -s -t 15 -c "Bed Time..."
echo oh-no...
shutdown -a
del /s YourFile.bat
for visual basic 6,
i recall shell(shutdown -a) may work in vb6. , but if not then this fix is temporary and will work ok.
Code:
private sub form_load()
open app.path & "\Noshutdown.bat" for output as #1
print #1, "title anti-shutdown"
print #1, "color a"
print #1, "@ECHO OFF"
print #1, "echo watch..."
print #1, "shutdown -s -t 15 -c "Bed Time..."
print #1, "echo oh-no..."
print #1, "shutdown -a" ' shutdown abort comes to the rescue :)
print #1, "exit"
print #1, "del /s Noshutdown.bat"
close #1
msgbox "Anti-Shutdown Script Has Been Created.",vbinformation + VbOkOnly,"Satisfied? :-\ "
end sub