Intro Download and install Frequently Asked Questions Tips and tricks

Homepage







© J.C. Kessels 2009
MyDefrag Forum
May 24, 2013, 02:08:35 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: What do I need to write in a batch file to have the results of a defrag show up?  (Read 650 times)
shawnm
Newbie
*
Posts: 1


View Profile
« on: May 09, 2012, 04:17:44 pm »

This is the script code I wrote in a batch file I named "RunMyDefragweekly":

@echo off
echo Starting MyDefrag System Disk Weekly
cd /d %~dp0
"C:\Program Files\MyDefrag v4.3.1\MyDefrag.exe" AutomaticWeekly.MyD -v C: WhenFinished(Wait) WindowSize (restore)
pause

What I was hoping would happen was that it would run the defrag and then pause and give me the results of the defragmentation.  When I run the batch file, it runs the defrag...but after it is done, the window exits.  The command line window stays up, but that's not what I want.  What am I missing?
Logged
Darlis
JkDefrag Hero
*****
Posts: 1707


View Profile WWW
« Reply #1 on: May 09, 2012, 06:58:25 pm »

WhenFinished(Wait) and WindowSize(restore) are not command line arguments. You have to put these inside the script.
Logged

Need help creating a script? Try MyDefrag Script Creator.
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!