Thanks for the input. I'm now getting this error after changing both of those lines:
Line 20
Char 5
[Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application.
Here is what I currently have:
retvar =...
Guys, again, I appreciate the help.
Ok, so I modified it to look like this:
retvar = GetAssetTag(WScript.Arguments(0))
Function GetAssetTag(sn)
Dim sConn, sSQL
Dim rst, cnn
Dim sPath, sDB
sPath = "C:\Users\E048321\Desktop" 'your path
sDB = "MWR-ITInventoryTemplate...
That's why I'm confused. It seems to hang up at "As String" in that line. In fact, when I remove all of the "As ..." portions, it completes, but outputs nothing...
Wow, Skip, thanks for the fast reply!!
I've named this script "getasset.vbs", and am running it from a command prompt like this: getasset.vbs D3500D1
"D3500D1 is the serial number I'm attempting to find the asset tag for. However, I get the following error:
Line: 1
Char: 25
Error...
I'm very new to VBScripting and am hoping that someone can be of some help, and have a feeling that it's rather simple...
I have an inventory spreadsheet of PC's serial numbers (column K) and asset tags (column J). This is located on a network share (\\server\path\inventory.xls). I need a...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.