Site logo

Get network adapter Name/MAC/Speed script

Here is the original two scripts js and vbs written by Marijan Tompa (tomaxxi).

Here’s my version: both scripts combined into a single js-file. It illustrates how to execute VBScript from JavaScript.

So that to combine both scripts into one jsx-file, the VBS code should be a single string. Use two pairs of quotes -- double and single -- there to include js variables into vbs if necessary. I use single -- outside, and double -- inside, like so:

Also, you have to double the backslashes in the vbs string like this:

The original VBS code

The same VBS code included in JS code with backslashes doubled

Click here to download the scripts.

See also tips on using doScript() here.