WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Miscellaneous

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Remote CD-ROM Detection

Keywords:   Remote CD-ROM Detection

Machine=RegConnect(ServerName, @REGMACHINE)
MountedDevicesKey = RegOpenKey(Machine,"SYSTEM\MountedDevices")
MountedDevicesList = RegQueryItem(Machine,"SYSTEM\MountedDevices")
RegCloseKey(MountedDevicesKey)
MountedDevicesList = ItemSort(MountedDevicesList, @TAB) ;Devices are not always in order so sort them.
MountedDevicesCount = ItemCount(MountedDevicesList, @TAB)
This assumes of course that you have admin rights to the target machine. Not pretty but it works.
Article ID:   W15545
File Created: 2003:05:13:11:28:38
Last Updated: 2003:05:13:11:28:38