Aaroui
IS-IT--Management
- May 17, 2013
- 4
Hi guys,
I am new here and also new to scripting.
I am searching for a script that determines whether there is a Cd-rom or not
Currently I have this:
now it shows the drive letter if present. but what I want is a way that the script will write down yes or no if the Cd-rom drive is present or not present.
Can anybody please help me with this?
I am new here and also new to scripting.
I am searching for a script that determines whether there is a Cd-rom or not
Currently I have this:
Code:
Set colItems = objWMIService.ExecQuery _
("Select * from Win32_CDROMDrive")
For Each objItem in colItems
cdrom= objItem.Drive & ";"
next
now it shows the drive letter if present. but what I want is a way that the script will write down yes or no if the Cd-rom drive is present or not present.
Can anybody please help me with this?