help with vbs script

Discussion in 'Computers' started by Andrew Pratt, Apr 17, 2003.

  1. Andrew Pratt

    Andrew Pratt Producer

    Joined:
    Dec 8, 1998
    Messages:
    3,806
    Likes Received:
    0
    Trophy Points:
    0
    I'm trying to get a vb script to run that will get the Serial number from the BIOS and write it to a text file. I've got it working on windows 2000 and windows XP home but it won't run on 98 or XP Pro. I've uploaded the script if you want to take a look at what I've done so far. Its available Here From reading the MS site and running a little test script it seems 95 and 98 are missing the active directory files so I tried installing them from a Windows 2000 server CD but it still won't run...any ideas?
     
  2. Kevin P

    Kevin P Screenwriter

    Joined:
    Jan 18, 1999
    Messages:
    1,439
    Likes Received:
    0
    Trophy Points:
    0
    What error are you getting in Win98? I don't have any Win98 boxes handy to test the script in. Either something needs to be installed or registered. If the script won't run at all, you need to install Windows Scripting Host. If it starts to run and then fails on a CreateObject, then there is a DLL or something that needs to be installed and registered. With some more specific info I can try to help out.

    KJP
     
  3. Andrew Pratt

    Andrew Pratt Producer

    Joined:
    Dec 8, 1998
    Messages:
    3,806
    Likes Received:
    0
    Trophy Points:
    0
    Thanks Kevin I went and checked to see what was going on and noticed that the WMI wasn't being picked up by the little program I had so I downloaded the latest version from MS (located here) and when that was installed it worked perfectly!
     
  4. Kevin P

    Kevin P Screenwriter

    Joined:
    Jan 18, 1999
    Messages:
    1,439
    Likes Received:
    0
    Trophy Points:
    0
    Glad to be of help. [​IMG]
     

Share This Page