Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. check disk API

check disk API

Scheduled Pinned Locked Moved C / C++ / MFC
c++toolsjsonquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Madan Chauhan
    wrote on last edited by
    #1

    Hi all, I am making an application using vc++, when the process complete I need to boot the machine and at booting time it ask for disk check for FAT32 volume. I dont want that user will see this check disk black screen. So I am trying to check the disk with my code before machine boot. Is there any win32API or any utility that checks disk so that I can implement it in to my code? I dont want to use Chkdsk Method of the Win32_LogicalDisk Class. One more option that I have to execute command chkdsk command on command prompt. But I am looking for any better option. Thanks Regards M Chauhan

    A 1 Reply Last reply
    0
    • M Madan Chauhan

      Hi all, I am making an application using vc++, when the process complete I need to boot the machine and at booting time it ask for disk check for FAT32 volume. I dont want that user will see this check disk black screen. So I am trying to check the disk with my code before machine boot. Is there any win32API or any utility that checks disk so that I can implement it in to my code? I dont want to use Chkdsk Method of the Win32_LogicalDisk Class. One more option that I have to execute command chkdsk command on command prompt. But I am looking for any better option. Thanks Regards M Chauhan

      A Offline
      A Offline
      Adam Roderick J
      wrote on last edited by
      #2

      Do u want to check the disk before system login, right?

      Величие не Бога может быть недооценена.

      M 1 Reply Last reply
      0
      • A Adam Roderick J

        Do u want to check the disk before system login, right?

        Величие не Бога может быть недооценена.

        M Offline
        M Offline
        Madan Chauhan
        wrote on last edited by
        #3

        Yes. I want to do the same thing with my code (at running stage of machine) that OS do itself at booting time.

        I 1 Reply Last reply
        0
        • M Madan Chauhan

          Yes. I want to do the same thing with my code (at running stage of machine) that OS do itself at booting time.

          I Offline
          I Offline
          Iain Clarke Warrior Programmer
          wrote on last edited by
          #4

          There's a reason the OS does this at boot time - when the OS is fully running, the disk is potentially changing all the time, invalidating the check. And what if there's a problem in a loaded file? Why is the OS doing this all the time? Mine doesn't! And which OS... Iain.

          I have now moved to Sweden for love (awwww). If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), or need cotract work done, give me a job! http://cv.imcsoft.co.uk/[^]

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups