QKSTechTrainee 36 Light Poster

Apologies if this was easy to find out elsewhere.

I am trying to write a small script that can be run on our network by each user, which captures their user login name and uses this to look up in a spreadsheet of all users to provide them with info also kept in this spreadsheet.

Now - looking up info and returning data to the user - no problem - but - how do I capture their username from the DOS ENVironment variable list?

Am I looking in the wrong place?
Taking the wrong aproach?
Is there somewhere easy to find I can look this up without bothering you nice people?

QKSTechTrainee

PS - are there lots of threads posted here which are never looked at?

PPS - reply here, by email or pm(if I'm online)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.