WA - Proper usage of %Username% when accessing/writing to files
I would like to know how to access (username independent)
C:\Users\<Your_Username>\Desktop when writing/opening files from WinAutomation.
I know its in WINDOWS desktop environment you can type %username% and its automatically converted into the specific User's name.
and that the % symbol should be escaped.
I tried: C:/Users/\%USERNAME\%/Desktop/something.txt
but it doesn't work, as the %username% is not converted to the actual username, throwing an invalid directory specified error .
Thanks I found it in the Help. It works just fine now.