Announcement

Collapse
No announcement yet.

Identify the Boot drive, or autoexec.bat file (if any)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Identify the Boot drive, or autoexec.bat file (if any)

    I need to put a file in the boot drive's root directory... Since boot drives can be A:, C: D: etc... I need to determine where it is...

    I didn't see a variable for %BootDrive% or anything..

    thanks
    -josh

  • #2
    Re: Identify the Boot drive, or autoexec.bat file (if any)

    I did find an entry in the Registry that you may want to explore. Look at the following Key:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Setup
    The value is "BootDir"

    Hope that helps.

    Comment


    • #3
      Re: Identify the Boot drive, or autoexec.bat file (if any)

      Thanks.

      Comment

      Working...
      X