Auslogics disk defrag command line help

Discussion in 'backup, imaging & disk mgmt' started by Iangh, Apr 12, 2015.

  1. Iangh

    Iangh Registered Member

    Joined:
    Jul 13, 2005
    Posts:
    849
    Location:
    Melbourne, Australia
    Can somebody please help?
    I want to schedule Auslogics defrag to optimise once a week using command line.
    http://www.auslogics.com/en/software/disk-defrag/command-line/

    In schedule I navigated to C:\PROGRA~2\Auslogics\DiskDefrag\cdefrag.exe and set it as the programme.
    In arguments I included -c -o (optmise local disk).
    It's not working. Anybody?
     
  2. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,147
    Location:
    NSW, Australia
    Iangh,

    Get it working manually first, then schedule the batch file. Create a batch file and copy/paste these trial lines...

    Code:
    @echo off
    
    Path=C:\Program Files (x86)\Auslogics\DiskDefrag
    
    start "" cdefrag.exe C: -o
    Run the batch file as an Administrator. Does the batch file work?
     
  3. Iangh

    Iangh Registered Member

    Joined:
    Jul 13, 2005
    Posts:
    849
    Location:
    Melbourne, Australia
    Thanks to you, Brian, it's working.
    Much appreciated.
    Ian
     
  4. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,147
    Location:
    NSW, Australia
    Ian,

    Glad I could help. I just ran some tests and it doesn't work without

    start ""
     
  5. Iangh

    Iangh Registered Member

    Joined:
    Jul 13, 2005
    Posts:
    849
    Location:
    Melbourne, Australia
    There's no way I would have come to close to figuring that!
    Cheers,
    Ian
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.