Jump to content


Adding Defraggler to run in a script


5 replies to this topic

#1 OFFLINE   drpat

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 29 January 2009 - 07:12 PM

Hi,

I'm looking at inserting whatever parameters I would need into a batch script that when run, runs a bunch of process matching records using a vendor matching software. The defraggler part would run at the END of the script so it could defrag the drive where the process matching was done. What parameters would I need to place in the batch script refering to starting a run of defraggler on that particular drive? Thanks for any advice.

dp

#2 OFFLINE   kmillerusaf

    Advanced Member

  • Members
  • PipPipPip
  • 431 posts
  • Gender:Male
  • Location:South Carolina

Posted 29 January 2009 - 07:34 PM

View Postdrpat, on Jan 29 2009, 02:12 PM, said:

Hi,

I'm looking at inserting whatever parameters I would need into a batch script that when run, runs a bunch of process matching records using a vendor matching software. The defraggler part would run at the END of the script so it could defrag the drive where the process matching was done. What parameters would I need to place in the batch script refering to starting a run of defraggler on that particular drive? Thanks for any advice.

dp

Hello drpat,

"df.exe <driveletter>:" would be the proper syntax. ie df.exe C:

This may also help you in the future: Piriform Docs
There's always an exception to the rule. I'm that exception.

Desktop ----- AMD Athlon 3700+ (2.64Ghz), 2GB DDR 400, ASUS A8N-SLI Premium, 500GB HD, Windows XP Pro SP3, Avira Antivir Personal
At work ----- Intel C2D T1700 (1.6Ghz), 2GB DDR2 667, Dell OUY141, 80GB HD, Windows XP Pro SP2, Symantec 10
Laptop ----- Intel C2D P8400 (2.4 Ghz), 4GB DDR3 1066, Mainboard, 160GB HD, Dualboot: Windows 7/openSUSE 11.1, Avira Antivir Personal



#3 OFFLINE   drpat

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 29 January 2009 - 07:47 PM

View Postkmillerusaf, on Jan 29 2009, 01:34 PM, said:

Hello drpat,

"df.exe <driveletter>:" would be the proper syntax. ie df.exe C:

This may also help you in the future: Piriform Docs


Ah Ok. That is what I thought, but thought it was too...simple. Duh! Thanks a bunch. It would I presume run as a background process not bringing up the gui or anything? For my purposes I would putting this at the end of the patch run script (well that is a lie...my vendor contractor would be doing this)...

df.exe E:\ISI\client_files\XXX_XXX\data\InputFiles\

Or if I just wanted to do the entire ISI directory on E...

df.exe E:\ISI\

Correct?

#4 OFFLINE   kmillerusaf

    Advanced Member

  • Members
  • PipPipPip
  • 431 posts
  • Gender:Male
  • Location:South Carolina

Posted 29 January 2009 - 08:03 PM

View Postdrpat, on Jan 29 2009, 02:47 PM, said:

Ah Ok. That is what I thought, but thought it was too...simple. Duh! Thanks a bunch. It would I presume run as a background process not bringing up the gui or anything? For my purposes I would putting this at the end of the patch run script (well that is a lie...my vendor contractor would be doing this)...

df.exe E:\ISI\client_files\XXX_XXX\data\InputFiles\

Or if I just wanted to do the entire ISI directory on E...

df.exe E:\ISI\

Correct?

Correct, that would defrag the entire ISI directory and correct it would run the program without the GUI. Below is a sample batch file (that would work on my computer, program locations might be different for you) that would list all the drives available to defrag:

@echo on
"c:\program files\defraggler\df.exe" /l

There's always an exception to the rule. I'm that exception.

Desktop ----- AMD Athlon 3700+ (2.64Ghz), 2GB DDR 400, ASUS A8N-SLI Premium, 500GB HD, Windows XP Pro SP3, Avira Antivir Personal
At work ----- Intel C2D T1700 (1.6Ghz), 2GB DDR2 667, Dell OUY141, 80GB HD, Windows XP Pro SP2, Symantec 10
Laptop ----- Intel C2D P8400 (2.4 Ghz), 4GB DDR3 1066, Mainboard, 160GB HD, Dualboot: Windows 7/openSUSE 11.1, Avira Antivir Personal



#5 OFFLINE   drpat

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 29 January 2009 - 08:52 PM

View Postkmillerusaf, on Jan 29 2009, 02:03 PM, said:

Correct, that would defrag the entire ISI directory and correct it would run the program without the GUI. Below is a sample batch file (that would work on my computer, program locations might be different for you) that would list all the drives available to defrag:

@echo on
"c:\program files\defraggler\df.exe" /l

Much obliged! You've saved the day! Thanks :)

dp

#6 OFFLINE   kmillerusaf

    Advanced Member

  • Members
  • PipPipPip
  • 431 posts
  • Gender:Male
  • Location:South Carolina

Posted 29 January 2009 - 09:30 PM

View Postdrpat, on Jan 29 2009, 03:52 PM, said:

Much obliged! You've saved the day! Thanks :)

dp

No problem. That batch file is really simple and probably not optimized to most standards like turning @echo off but I was just trying to give an example. I wish you good luck! Take care
There's always an exception to the rule. I'm that exception.

Desktop ----- AMD Athlon 3700+ (2.64Ghz), 2GB DDR 400, ASUS A8N-SLI Premium, 500GB HD, Windows XP Pro SP3, Avira Antivir Personal
At work ----- Intel C2D T1700 (1.6Ghz), 2GB DDR2 667, Dell OUY141, 80GB HD, Windows XP Pro SP2, Symantec 10
Laptop ----- Intel C2D P8400 (2.4 Ghz), 4GB DDR3 1066, Mainboard, 160GB HD, Dualboot: Windows 7/openSUSE 11.1, Avira Antivir Personal