Intro Download and install Frequently Asked Questions Tips and tricks

Homepage







© J.C. Kessels 2009
MyDefrag Forum
June 20, 2013, 09:02:01 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Relaunch GUI Menu When Done With Script  (Read 922 times)
djo_34
JkDefrag Senior
****
Posts: 24


View Profile
« on: October 29, 2009, 02:06:34 am »

If you want MyDefrag to re-open the GUI when done with a script, create a restart.cmd file in the same directory as MyDefrag.exe with one line of text:

start "MyDefrag" MyDefrag.exe

Then add the last line to the end of your script like so:

Title( '( Analyze Only )' )
Description('')
WhenFinished( exit )
VolumeSelect
   CommandlineVolumes()
VolumeActions
   AppendLogfile( "MyDefrag.log", "" )
   Pause()
VolumeEnd
RunProgram( "Restart.cmd" )
« Last Edit: October 29, 2009, 02:08:29 am by djo_34 » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!