Solved

how to get system user id in aa360

  • 31 March 2023
  • 3 replies
  • 804 views

Badge +4

Hello All,

 

How to get system username of a system

 

currently i have a file which is in C:/users/rohit/downloads/excel.xlsx

 

when i want to run this code in other machine instead of rohit it should pick his system name ,how is it possible in AA360

icon

Best answer by Zaid Chougle 4 April 2023, 07:44

View original

3 replies

Userlevel 5
Badge +10

@Adarsh Nambiar 

command prompt command - whoami 

will provide user details 

 

Userlevel 3
Badge +6

Use system variables, it has username also user download directory path.

Userlevel 4
Badge +10

Hello All,

 

How to get system username of a system

 

currently i have a file which is in C:/users/rohit/downloads/excel.xlsx

 

when i want to run this code in other machine instead of rohit it should pick his system name ,how is it possible in AA360

Hi @Adarsh Nambiar ,

 

You can Drag and Drop → Get environment variable action under System package.

Refresh the Environment variable list.

After refresh is done you will see a USERNAME entry. Select that and store it in a variable.

 

Please check and let me know whether the solution is working or not.

 

Reply