Jump to content

Recommended Posts

Posted

Hi group

I'm trying to create a script that reads the registry key located here

HKLM\SYSTEM\CurrentControlSet\Enum\FDC\GENERIC_FLOPPY_DRIVE\, then I need to use that value to edit a key under

HKLM\SYSTEM\CurrentControlSet\Enum\FDC\GENREIC_FLOPPY_DRIVE\(The key found earlier\ConfigFlags

hope this made sense.

Posted (edited)

Use RegEnumKey:

$sKey = RegEnumKey("HKLM\SYSTEM\CurrentControlSet\Enum\FDC\GENERIC_FLOPPY_DRIVE\", 1)
If not @error Then $sFlags = RegRead("HKLM\SYSTEM\CurrentControlSet\Enum\FDC\GENERIC_FLOPPY_DRIVE\" & $sKey, "ConfigFlags")

Note that find first key under GENERIC_FLOPPY_DRIVE. You have change instance in RegEnumKey to find other keys.

Edited by Lazycat

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...