hexagon logo

Get Windows username, compname, domain

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/sets it to variable name 'V1' in the partprogram.

REMOVED


...as always, tweak it to your own liking.