Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Aaroui

    Vbs Script yes/no Cd-rom output

    I have tested it and it just says yes whether there is a CD-rom drive or not.
  2. Aaroui

    Vbs Script yes/no Cd-rom output

    Yes, my script was giving me my drive letter. but yours said You "have no CD-ROM" I have changed your script to: For Each objItem in colItems cdrom= objItem.Drive & ";" next if (cdrom <> null) then cdrom= "No" else cdrom= "Yes" end if The part I do not understand is where you type "<>...
  3. Aaroui

    Vbs Script yes/no Cd-rom output

    Thank you for your post. Actually I have defined objWMIService but this is just a part of my whole script. I think your script is not correct, If I run it on my Computer it says You have no CD-ROM as I have a CD-ROM drive this is not correct. So what I'm searching for is something to ad to that...
  4. Aaroui

    Vbs Script yes/no Cd-rom output

    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: Set colItems = objWMIService.ExecQuery _ ("Select * from Win32_CDROMDrive") For Each objItem in colItems cdrom= objItem.Drive & ";" next now...

Part and Inventory Search

Back
Top