Print Page | Close Window

Accessing UserName from script

Printed From: Rocket Software
Category: AccuTerm Knowledge Base (read only)
Forum Name: Installation & Setup
Forum Description: Discuss issues related to program installation, creating and configuring terminal sessions
URL: https://forum.asent.com/forum_posts.asp?TID=2568
Printed Date: March 26 2026 at 8:51pm
Software Version: Web Wiz Forums 12.03 - http://www.webwizforums.com


Topic: Accessing UserName from script
Posted By: matadyshak
Subject: Accessing UserName from script
Date Posted: March 16 2016 at 11:39am
Is there a way to access the user name that is logged into Accuterm?
 
I see there is a Server.UserName property but that does not work in a script.


-------------
Michael Tadyshak



Replies:
Posted By: Shrek59
Date Posted: March 18 2016 at 1:11am
Well, you don't log into AccuTerm as such. Rather, you log into a multi-value database using AccuTerm.

The method of getting the username varies depending on which database you have logged into. For example, you can use the @LOGNAME variable in OpenQM, UniVerse, or UniData. You may also be able to use one of the SYSTEM() functions.

Note those functions return the name that you use to log into the SERVER. If you want the name by which you logged into the CLIENT PC (before you started AccuTerm), then you could use an AccuTerm script of:

  InitSession.Output Environ("USERNAME") & vbCr

HTH,

Brian


Posted By: matadyshak
Date Posted: March 18 2016 at 11:33am
What are the SYSTEM() functions?

-------------
Michael Tadyshak



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.03 - http://www.webwizforums.com
Copyright ©2001-2019 Web Wiz Ltd. - https://www.webwiz.net