X
x9012590125
Hello all.
I want to run the GUI version of Defrag (DFRG.MSC) as a scheduled task,
but it doesn't work as expected:
Running this .MSC from the "Run..." or DOS box works fine. But if I put
"%WINDIR%\System32\DFRG.MSC" as command-line in a scheduled task, it
just hangs there (presumably awaiting input). Either that, or it starts
and exits right away, depending on the syntax I use.
What I want is for it to run automatically -- and -- perform a disk
analysis of C:
I also tried the following construct, but alas...
"%WINDIR%\System32\CMD.exe" /C START "" /B /I
"%WINDIR%\System32\DFRG.MSC"
(with/out "/I" and "/B")
I know I can use "DEFRAG C: /A", but I want the GUI version. Besides, I
tried that too and it still runs invisibly. Annoying.
Anyone know the magic formula?
Thanks!
M.T.
PS: Please answer within thread -- email is a decoy.
I want to run the GUI version of Defrag (DFRG.MSC) as a scheduled task,
but it doesn't work as expected:
Running this .MSC from the "Run..." or DOS box works fine. But if I put
"%WINDIR%\System32\DFRG.MSC" as command-line in a scheduled task, it
just hangs there (presumably awaiting input). Either that, or it starts
and exits right away, depending on the syntax I use.
What I want is for it to run automatically -- and -- perform a disk
analysis of C:
I also tried the following construct, but alas...
"%WINDIR%\System32\CMD.exe" /C START "" /B /I
"%WINDIR%\System32\DFRG.MSC"
(with/out "/I" and "/B")
I know I can use "DEFRAG C: /A", but I want the GUI version. Besides, I
tried that too and it still runs invisibly. Annoying.
Anyone know the magic formula?
Thanks!
M.T.
PS: Please answer within thread -- email is a decoy.