Author Topic: command line options for windows repair  (Read 20414 times)

0 Members and 1 Guest are viewing this topic.

Offline lytithwyn

  • Newbie
  • *
  • Join Date: Jan 2012
  • Posts: 7
  • Karma: 1
    • View Profile
command line options for windows repair
« on: January 25, 2012, 08:40:09 AM »
Forgive me if this has already been implemented, but I haven't been able to find any mention of it.

It would be great if the windows repair tool accepted command line options to specify what fixes should be run.  This would make it easier to automate the tool without the use of something like AutoIt.  For instances, many times I would run all the fixes under "custom" in the last step EXCEPT for resetting the hosts file; I would have previously used Spybot to add hostfile protection and would not want that to be undone.

Offline Shane

  • Top Geek, err uh Dog.
  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9274
  • Location: USA
  • Karma: 137
  • "Knowledge should be shared not hidden."
    • View Profile
    • Tweaking.com
Re: command line options for windows repair
« Reply #1 on: January 25, 2012, 12:06:54 PM »
The options can be set in the settings.ini file. The program remembers which ones you select under custom mode.

I could make a silent command that will run in custom mode, and from there the program loads the repairs from the settings like normal :wink:

Shane
PLEASE EDIT YOUR TOPIC AND PUT (SOLVED) IF YOU ARE ALL FIXED.

(My weekends belong to my wife and kids, I will try my best to answer all posts daily during the work week)

(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 5 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com

Offline lytithwyn

  • Newbie
  • *
  • Join Date: Jan 2012
  • Posts: 7
  • Karma: 1
    • View Profile
Re: command line options for windows repair
« Reply #2 on: January 25, 2012, 02:12:30 PM »
That'd be great!  I really like that feature of SST.

Offline Shane

  • Top Geek, err uh Dog.
  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9274
  • Location: USA
  • Karma: 137
  • "Knowledge should be shared not hidden."
    • View Profile
    • Tweaking.com
Re: command line options for windows repair
« Reply #3 on: January 25, 2012, 02:15:21 PM »
Will be easy for me to do. I will put out an update this Sunday. :wink:

Shane
PLEASE EDIT YOUR TOPIC AND PUT (SOLVED) IF YOU ARE ALL FIXED.

(My weekends belong to my wife and kids, I will try my best to answer all posts daily during the work week)

(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 5 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com

Offline Shane

  • Top Geek, err uh Dog.
  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9274
  • Location: USA
  • Karma: 137
  • "Knowledge should be shared not hidden."
    • View Profile
    • Tweaking.com
Re: command line options for windows repair
« Reply #4 on: January 25, 2012, 02:38:20 PM »
Done  :artist:

test it out for me. Replace your current exe with this one.

Current change log (Unless I add more before Sunday.)
Quote
v1.6.2
Per user request I have added a silent command option to the program. Set the options in the setting.ini file and run the program with /silent. The program will run in custom mode running the repairs set in the settings and then close it self. Will even reboot when done if set in the settings. (Perfect option for my fellow network admins) :-)

Shane

PLEASE EDIT YOUR TOPIC AND PUT (SOLVED) IF YOU ARE ALL FIXED.

(My weekends belong to my wife and kids, I will try my best to answer all posts daily during the work week)

(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 5 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com

Offline lytithwyn

  • Newbie
  • *
  • Join Date: Jan 2012
  • Posts: 7
  • Karma: 1
    • View Profile
Re: command line options for windows repair
« Reply #5 on: January 25, 2012, 03:02:17 PM »
Sweet!  I'm closing up the shop today but I'll have it tested out for you tomorrow!

Offline lytithwyn

  • Newbie
  • *
  • Join Date: Jan 2012
  • Posts: 7
  • Karma: 1
    • View Profile
Re: command line options for windows repair
« Reply #6 on: January 26, 2012, 07:43:17 AM »
Works great for me.  This is really going to save me some time.  Thanks!

Offline friedmonky

  • Jr. Member
  • **
  • Join Date: Oct 2011
  • Posts: 89
  • Location: USA
  • Karma: 0
    • View Profile
Re: command line options for windows repair
« Reply #7 on: January 26, 2012, 09:19:18 AM »
Please forgive my ignorance but what is the point of this?  Why not just un-tick the fixes under custom that you do not want to run?  I sem to be missing something here.  :confused:

Offline lytithwyn

  • Newbie
  • *
  • Join Date: Jan 2012
  • Posts: 7
  • Karma: 1
    • View Profile
Re: command line options for windows repair
« Reply #8 on: January 26, 2012, 09:25:04 AM »
This way if I want to write a simple script to run a few tools, I can just have a shell script that copies the windows repair files to the hard drive (with my custom settings file in place) and run the windows repair with the right options.  One click.

Sure, if you're doing one or two here and there this doesn't mean much; we might do three at once, multiple times per day (on a busy day).

Offline Shane

  • Top Geek, err uh Dog.
  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9274
  • Location: USA
  • Karma: 137
  • "Knowledge should be shared not hidden."
    • View Profile
    • Tweaking.com
Re: command line options for windows repair
« Reply #9 on: January 26, 2012, 10:28:08 AM »
I do the same for my fresh installs. I run a computer repair business myself and have my entire install of a new system automated :-)

Shane
PLEASE EDIT YOUR TOPIC AND PUT (SOLVED) IF YOU ARE ALL FIXED.

(My weekends belong to my wife and kids, I will try my best to answer all posts daily during the work week)

(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 5 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com

Offline friedmonky

  • Jr. Member
  • **
  • Join Date: Oct 2011
  • Posts: 89
  • Location: USA
  • Karma: 0
    • View Profile
Re: command line options for windows repair
« Reply #10 on: January 26, 2012, 11:19:52 AM »
Sorry guys, I just don't see the point of silent installs.  Just to save a few mouse clicks?  :confused:

Offline Shane

  • Top Geek, err uh Dog.
  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9274
  • Location: USA
  • Karma: 137
  • "Knowledge should be shared not hidden."
    • View Profile
    • Tweaking.com
Re: command line options for windows repair
« Reply #11 on: January 26, 2012, 11:22:08 AM »
My reinstalls have over 2 dozen free programs and tweaks that are done. Waiting for the next button to come up and other things slow you down. Now you add 2 or 3 machines at once and the amount of clicks and time wasted waiting to click a next or finish button all adds up.

While the systems are doing the work I need them to I can focus on other customers or work. :wink:

For normal home use I don't bother with silent installs, I just do it normally. But for work it is a huge time saver.

Shane
PLEASE EDIT YOUR TOPIC AND PUT (SOLVED) IF YOU ARE ALL FIXED.

(My weekends belong to my wife and kids, I will try my best to answer all posts daily during the work week)

(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 5 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com

Offline lytithwyn

  • Newbie
  • *
  • Join Date: Jan 2012
  • Posts: 7
  • Karma: 1
    • View Profile
Re: command line options for windows repair
« Reply #12 on: January 26, 2012, 11:26:36 AM »
Not to mention the fact that even if I only save 2 mouse clicks per computer, that's two fewer mistakes I can possibly make.  Multiply that by 10 computers per day and by 5 days per week.  That's 100 clicks per week.

Offline Shane

  • Top Geek, err uh Dog.
  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9274
  • Location: USA
  • Karma: 137
  • "Knowledge should be shared not hidden."
    • View Profile
    • Tweaking.com
Re: command line options for windows repair
« Reply #13 on: January 26, 2012, 11:28:09 AM »
Very good point as well, less human error. So I don't forget any steps in my normal reinstall routine :wink:

Shane
PLEASE EDIT YOUR TOPIC AND PUT (SOLVED) IF YOU ARE ALL FIXED.

(My weekends belong to my wife and kids, I will try my best to answer all posts daily during the work week)

(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 5 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com

Offline friedmonky

  • Jr. Member
  • **
  • Join Date: Oct 2011
  • Posts: 89
  • Location: USA
  • Karma: 0
    • View Profile
Re: command line options for windows repair
« Reply #14 on: January 26, 2012, 12:02:37 PM »
I see your points.  However, I personally just have no need to do installs that way.  Doesn't take me long at all using the traditional method.