© J.C. Kessels 2009
MyDefrag Forum
May 24, 2013, 12:03:57 am
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
MyDefrag Forum
>
JkDefrag v3 Forum
>
Questions and help
>
What do I need to write in a batch file to have the results of a defrag show up?
Pages: [
1
]
« previous
next »
Print
Author
Topic: What do I need to write in a batch file to have the results of a defrag show up? (Read 649 times)
shawnm
Newbie
Posts: 1
What do I need to write in a batch file to have the results of a defrag show up?
«
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
Re: What do I need to write in a batch file to have the results of a defrag show up?
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
MyDefrag v4 Forum
-----------------------------
=> Announcements
=> Questions and help
=> Bugs and problems
=> Requests for new features
=> Scripts, and other contributions
-----------------------------
JkDefrag v3 Forum
-----------------------------
=> Announcements
=> Questions and help
=> Bugs and problems
=> Requests for new features
=> Programming with the library
Loading...