bigbaboon
asked on
How do I prevent a user closing the command window while a script is running?
I have a powershell script that runs as part of an unattended Vista build. It has a pretty long execution time. Getting build engineers to understand that the powershell window should not be closed halfway through script execution as the build has not "hung" can be tiresome. I am currently rectifying this problem by outputting progress to an IE window, displaying progress updates etc. but am wondering if there is a simple way when executing a script of preventing a user from closing the window? (Like turn the 'x' button of the window title bar grey color?)
Thanks.
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
In case you're still looking for something, I could offer an AutoIT script (http://www.autoitscript.com/) that can be compiled to an exe, which will run the program of your choice and disable its Close system menu (though Alt-F4 and the task manager will still work).