|
|
|||||||
Hello, I'm trying to write a script that will write bits of information to an INI file. I know how to gather basic info but what I really want to know is what drive mappings the PC has remembered. I can't figure out how to write the values of HKEY_CURRENT_USER\Network\ to an INI file and for each key it finds under "Network" I'd like to know what path is defined in RemotePath. Can someone help me with this? Thanks in advance. |
||||||||
|
|
|||||||
Well here is an example of how to manipulate the .INI file. Replace a value in an INI file As for the other items, please let us know what version of KiXtart you're using and what OS versions you need to support. |
||||||||
|
|
|||||||
I'm using 4.22 and would like it to support Win 9x as well as Win2K / XP. I know how to manipulate the INI file but I'm running into a problem with HKEY_CURRENT_USER\Network key which is where remembered network connects are stored. After "Network" there is another subkey that is represented by a drive letter, for example HKEY_CURRENT_USER\Network\Z would mean I have a Z drive mapped and inside of the Z subkey is a DWORD value "RemotePath" that tells me what path Z is mapped to. My problem is I don't know how to enumerate all those keys and subkeys and RemotePath values into an INI file. |
||||||||
|
|
|||||||
Well if you already know how to manipulate the .INI file then here is some code to get the information you're looking for. Code: Break On Let us know how it works out, or if you need further assistance. As for the Windows 9x support, I don't have any Windows 9x to test on but if you allow profiles on your Windows 9x then this will be hard to do as this is not available during logon. |
||||||||
|
|
|||||||
This is perfect - Thanks. |