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.
Mike D.
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 .
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstJoseph Brancato
Mike D.
Thanks I found it in the Help. It works just fine now.
-
Best Practise Developer Guide
-
New V8 has cookie problem
-
excel update
-
Example using multipart/form-data to upload a file
-
Connect to Exchange OWA
-
How to use Get Data With ABBYY FlexiCapture
-
Viewing support tickets raised by all users
-
Excel columns sorting
-
Need help reading values from ini file
-
Image in Email Body
See all 273 topics