Author Topic: 'Open chkdsk @ next reboot' button (in step 3) doesn't seem to be working  (Read 2542 times)

0 Members and 1 Guest are viewing this topic.

Offline Alpha beta

  • Newbie
  • *
  • Join Date: Dec 2014
  • Posts: 7
  • Karma: 1
    • View Profile
'Open chkdsk @ next reboot' button (in step 3) doesn't seem to be working. (It works fine on cmd though)

Offline Shane

  • Top Geek, err uh Dog.
  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9280
  • Location: USA
  • Karma: 138
  • "Knowledge should be shared not hidden."
    • View Profile
    • Tweaking.com
What do you mean exactly?

Does the window open? Does nothing open? Or does the tool open but nothing is happening?

I attached a screen shot of the windows that should be opening.

The first thing it does when it is opening the window is call the windows file system api to return the fixed drives on the system to show in the drop download list. Do you have any extra drives or drives letters on the system?

I am wondering if I should have the program look for the drives after the window is loaded instead of before.

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 Alpha beta

  • Newbie
  • *
  • Join Date: Dec 2014
  • Posts: 7
  • Karma: 1
    • View Profile
Nothing happens.
I'm pretty sure I've seen the window previously when I've done scans, but for some reason it's not coming up now.
The only Drives I have are C,D, and F.

Offline Shane

  • Top Geek, err uh Dog.
  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9280
  • Location: USA
  • Karma: 138
  • "Knowledge should be shared not hidden."
    • View Profile
    • Tweaking.com
OK, so the code calls the file system object and then does a loop through the returned results.

But if there was a problem with the results for some reason, then it is possible the loop would never stop and so the window would never load.

So I am changing the code to stop the loop if it goes through more than 26 times, that way it should stop that from happening.

Then just in case the file system object doesnt return any drive letters I will have the program add the windows drive letter to the list, if the list is empty for any reason.

So next week iw ill put out a new version and let me know how it does for you. :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