Tweak it to suit your needs.
' Get various info from WScript.Network and add it to
' a PCDMIS partprogram. If the variable exists, it changes
' (updates) the variable to the currently logged in user.
'
' Save as .bas and call it, from within the…
Retrieves the username, computername and/or domain and inserts this into a variable/variables in your PC-DMIS partprogram.
A .bas version of J. Jones exefile-solution.
The code below retrieves the name of the currently logged on user and creates…