Skip to main content
Solved

how to get system user id in a360


Forum|alt.badge.img+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

Best answer by Zaid Chougle

Adarsh Nambiar wrote:

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.

 

View original
Did this topic help answer your question?

rbkadiyam
Mission Commander | Tier 5
Forum|alt.badge.img+17
  • Mission Commander | Tier 5
  • April 3, 2023

@Adarsh Nambiar 

command prompt command - whoami 

will provide user details 

 


Forum|alt.badge.img+6
  • Navigator | Tier 3
  • April 4, 2023

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


Zaid Chougle
Navigator | Tier 3
Forum|alt.badge.img+15
Adarsh Nambiar wrote:

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings