Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › .bat file [Optimization]
New Posts  All Forums:Forum Nav:

.bat file [Optimization] - Page 2

post #11 of 17
Thread Starter 
Quote:
Originally Posted by .:hybrid:. View Post

It requires a capital S
btw I would recommend installing the slim version: http://www.piriform.com/ccleaner/download/slim
The other version comes with a toolbar, and it might get installed with the silent installation.
You don't need START either, this works for a custom location:
Code:
ccsetup.exe /S /D=D:\Program Files\CCleaner
I just checked and unfortunatly you cannot rebuild icon cache from within CCleaner, you cannot run reg cleaner via command line either.
Really, check out: http://www.autohotkey.com/
it was made for stuff like this
I used a capital S but thx for the tip...

Also just for an example....
How would I get that to run in a BAT file and have it run afterwards? O_o
Naomi
(16 items)
 
  
CPUMotherboardGraphicsGraphics
Intel i5 2500k Asus Maximus IV Extreme EVGA GTX 560 TI SC EVGA GTX 560 TI SC 
RAMHard DriveOptical DriveCooling
x2 4GB DDR3 1600 OCZ Solid 3 SLD3-25SAT3-120G Optiarc BD RW BD-5300S Corsair H100 Liquid Unit 
OSMonitorPowerCase
Windows 7 64-bit Asus 24 Monitor Corsair AX 750 Gold MYOPENPC DOMA Pro PCI Black Transparent Acrylic... 
MouseAudio
Razer Imperator On-Board 
  hide details  
Reply
Naomi
(16 items)
 
  
CPUMotherboardGraphicsGraphics
Intel i5 2500k Asus Maximus IV Extreme EVGA GTX 560 TI SC EVGA GTX 560 TI SC 
RAMHard DriveOptical DriveCooling
x2 4GB DDR3 1600 OCZ Solid 3 SLD3-25SAT3-120G Optiarc BD RW BD-5300S Corsair H100 Liquid Unit 
OSMonitorPowerCase
Windows 7 64-bit Asus 24 Monitor Corsair AX 750 Gold MYOPENPC DOMA Pro PCI Black Transparent Acrylic... 
MouseAudio
Razer Imperator On-Board 
  hide details  
Reply
post #12 of 17
Code:
ccsetup.exe /S
"%ProgramFiles%\CCleaner\CCleaner.exe" /AUTO

It doesn't look like it does anything because it silent, but pull up task manager and sort alphabetically, you will see ccleaner run.
Edited by .:hybrid:. - 10/18/12 at 11:45am
Webcrawler
(17 items)
 
  
CPUMotherboardGraphicsRAM
i5 3570k ASRock Z75 Pro3 Sapphire 7870 XT Boost Corsair Vengeance, DDR3 1600Mhz 
Hard DriveHard DriveOSMonitor
SpinPoint F1 1TB 64GB M4 SSD Windows 8.1 SyncMaster P2050 
MonitorKeyboardPowerMouse
Dell U2312HM Sidewinder X4 Be Quiet! Pure Power CM L8 430w Zowie FK 
AudioAudio
Xonar DG Sennheiser HD 555 
  hide details  
Reply
Webcrawler
(17 items)
 
  
CPUMotherboardGraphicsRAM
i5 3570k ASRock Z75 Pro3 Sapphire 7870 XT Boost Corsair Vengeance, DDR3 1600Mhz 
Hard DriveHard DriveOSMonitor
SpinPoint F1 1TB 64GB M4 SSD Windows 8.1 SyncMaster P2050 
MonitorKeyboardPowerMouse
Dell U2312HM Sidewinder X4 Be Quiet! Pure Power CM L8 430w Zowie FK 
AudioAudio
Xonar DG Sennheiser HD 555 
  hide details  
Reply
post #13 of 17
Thread Starter 
Quote:
Originally Posted by .:hybrid:. View Post

Code:
ccsetup.exe /S
"%ProgramFiles%\CCleaner\CCleaner.exe" /AUTO
It doesn't look like it does anything because it silent, but pull up task manager and sort alphabetically, you will see ccleaner run.

Well I get that but nothing installed after 10mins...
Naomi
(16 items)
 
  
CPUMotherboardGraphicsGraphics
Intel i5 2500k Asus Maximus IV Extreme EVGA GTX 560 TI SC EVGA GTX 560 TI SC 
RAMHard DriveOptical DriveCooling
x2 4GB DDR3 1600 OCZ Solid 3 SLD3-25SAT3-120G Optiarc BD RW BD-5300S Corsair H100 Liquid Unit 
OSMonitorPowerCase
Windows 7 64-bit Asus 24 Monitor Corsair AX 750 Gold MYOPENPC DOMA Pro PCI Black Transparent Acrylic... 
MouseAudio
Razer Imperator On-Board 
  hide details  
Reply
Naomi
(16 items)
 
  
CPUMotherboardGraphicsGraphics
Intel i5 2500k Asus Maximus IV Extreme EVGA GTX 560 TI SC EVGA GTX 560 TI SC 
RAMHard DriveOptical DriveCooling
x2 4GB DDR3 1600 OCZ Solid 3 SLD3-25SAT3-120G Optiarc BD RW BD-5300S Corsair H100 Liquid Unit 
OSMonitorPowerCase
Windows 7 64-bit Asus 24 Monitor Corsair AX 750 Gold MYOPENPC DOMA Pro PCI Black Transparent Acrylic... 
MouseAudio
Razer Imperator On-Board 
  hide details  
Reply
post #14 of 17
wierd, installation should only take a second

do you mind taking a screenshot the of the .bat, .exe in the same folder and contents of the bat file? Just to rule out any simple oversights.
Webcrawler
(17 items)
 
  
CPUMotherboardGraphicsRAM
i5 3570k ASRock Z75 Pro3 Sapphire 7870 XT Boost Corsair Vengeance, DDR3 1600Mhz 
Hard DriveHard DriveOSMonitor
SpinPoint F1 1TB 64GB M4 SSD Windows 8.1 SyncMaster P2050 
MonitorKeyboardPowerMouse
Dell U2312HM Sidewinder X4 Be Quiet! Pure Power CM L8 430w Zowie FK 
AudioAudio
Xonar DG Sennheiser HD 555 
  hide details  
Reply
Webcrawler
(17 items)
 
  
CPUMotherboardGraphicsRAM
i5 3570k ASRock Z75 Pro3 Sapphire 7870 XT Boost Corsair Vengeance, DDR3 1600Mhz 
Hard DriveHard DriveOSMonitor
SpinPoint F1 1TB 64GB M4 SSD Windows 8.1 SyncMaster P2050 
MonitorKeyboardPowerMouse
Dell U2312HM Sidewinder X4 Be Quiet! Pure Power CM L8 430w Zowie FK 
AudioAudio
Xonar DG Sennheiser HD 555 
  hide details  
Reply
post #15 of 17
Thread Starter 
Quote:
Originally Posted by .:hybrid:. View Post

wierd, installation should only take a second
do you mind taking a screenshot the of the .bat, .exe in the same folder and contents of the bat file? Just to rule out any simple oversights.

No longer at my computer...
I'd have to remake it... to which I would just copy your code...
Naomi
(16 items)
 
  
CPUMotherboardGraphicsGraphics
Intel i5 2500k Asus Maximus IV Extreme EVGA GTX 560 TI SC EVGA GTX 560 TI SC 
RAMHard DriveOptical DriveCooling
x2 4GB DDR3 1600 OCZ Solid 3 SLD3-25SAT3-120G Optiarc BD RW BD-5300S Corsair H100 Liquid Unit 
OSMonitorPowerCase
Windows 7 64-bit Asus 24 Monitor Corsair AX 750 Gold MYOPENPC DOMA Pro PCI Black Transparent Acrylic... 
MouseAudio
Razer Imperator On-Board 
  hide details  
Reply
Naomi
(16 items)
 
  
CPUMotherboardGraphicsGraphics
Intel i5 2500k Asus Maximus IV Extreme EVGA GTX 560 TI SC EVGA GTX 560 TI SC 
RAMHard DriveOptical DriveCooling
x2 4GB DDR3 1600 OCZ Solid 3 SLD3-25SAT3-120G Optiarc BD RW BD-5300S Corsair H100 Liquid Unit 
OSMonitorPowerCase
Windows 7 64-bit Asus 24 Monitor Corsair AX 750 Gold MYOPENPC DOMA Pro PCI Black Transparent Acrylic... 
MouseAudio
Razer Imperator On-Board 
  hide details  
Reply
post #16 of 17
Instead of writing .bat files you might want to look into powershell. Much more powerful and you will be able to automate any task you want. In my IT department we've automated pretty much anything you can do with a computer using powershell.
post #17 of 17
Thread Starter 
Quote:
Originally Posted by yomama9388 View Post

Instead of writing .bat files you might want to look into powershell. Much more powerful and you will be able to automate any task you want. In my IT department we've automated pretty much anything you can do with a computer using powershell.

Well you being the foremost expert... would you care to explain because I've only heard of it... never used it and don't know how it works or what it does...
but as you have your own department using this would you mind helping me out?
Naomi
(16 items)
 
  
CPUMotherboardGraphicsGraphics
Intel i5 2500k Asus Maximus IV Extreme EVGA GTX 560 TI SC EVGA GTX 560 TI SC 
RAMHard DriveOptical DriveCooling
x2 4GB DDR3 1600 OCZ Solid 3 SLD3-25SAT3-120G Optiarc BD RW BD-5300S Corsair H100 Liquid Unit 
OSMonitorPowerCase
Windows 7 64-bit Asus 24 Monitor Corsair AX 750 Gold MYOPENPC DOMA Pro PCI Black Transparent Acrylic... 
MouseAudio
Razer Imperator On-Board 
  hide details  
Reply
Naomi
(16 items)
 
  
CPUMotherboardGraphicsGraphics
Intel i5 2500k Asus Maximus IV Extreme EVGA GTX 560 TI SC EVGA GTX 560 TI SC 
RAMHard DriveOptical DriveCooling
x2 4GB DDR3 1600 OCZ Solid 3 SLD3-25SAT3-120G Optiarc BD RW BD-5300S Corsair H100 Liquid Unit 
OSMonitorPowerCase
Windows 7 64-bit Asus 24 Monitor Corsair AX 750 Gold MYOPENPC DOMA Pro PCI Black Transparent Acrylic... 
MouseAudio
Razer Imperator On-Board 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Coding and Programming
Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › .bat file [Optimization]