Jump to content
Sign in to follow this  
tombern

Total newbie needs some help

Recommended Posts

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...