Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I wrote program to shutdown system automatically in PERL , while shutdown if we open any file the windows asked that the file will save or cancel , my aim is cancel button automatically clicked and shut the system

share|improve this question

Use the shutdown command - open up a cmd window and use shutdown /? to see help on it. When used by itself with no arguments, it will pop up a 30 second warning and then shut down the machine. It will ignore anything like dialogue boxes asking questions

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.