Skip to main content
1-Visitor
December 17, 2012
Question

Batch File

  • December 17, 2012
  • 0 replies
  • 526 views
I haven't done this exact thing, but you should be able to do it with a
simple batch file that installs a .inf runonce registry key. See:


SHUTDOWN /r /p





Where defrag.bat would look like this:

@ECHO OFF

TITLE System Defrag

COLOR CF

ECHO !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

ECHO !!! DO NOT PROCEED !!!

ECHO !!! SYSTEM MAINTENANCE !!!

ECHO !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

ECHO .

ECHO !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

ECHO !!! SYSTEM WILL REBOOT !!!

ECHO !!! WHEN COMPLETED !!!

ECHO !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

DEFRAG c: /H /X

SHUTDOWN /r /p



This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.