Page 1 of 1

Run Application: Use of Windows 10 Local Profiles

Posted: Wed Jan 26, 2022 10:38 am
by MUP
A smartfolder> testcase>recording>run application has to be used for separate admin-users rxtest1 and rxtest2 on the same machine.

Just run a simple recording action "run application --- powershell --- move-item %userprofile%\desktop\*.txt c:\test -force"
Working directory is set to c:\test
But %userprofile% will not be accepted.
Now using c:\users\rxtest1 instead of %userprofil% then the move-item works successfully.

Is there any solution to get the use of %userprofile% working?
Many thanks


RX 10.1.5
W10 Pro 64bit 21H1

Re: Run Application: Use of Windows 10 Local Profiles

Posted: Wed Jan 26, 2022 11:15 am
by odklizec
Hi,

You will have to change the DOS macro to powershell commands. Check this page how to do this:
https://renenyffenegger.ch/notes/Window ... name/index

Re: Run Application: Use of Windows 10 Local Profiles

Posted: Wed Jan 26, 2022 11:42 am
by MUP
Hi @odklizec

That works absolutely perfect.
Thanks for the hint.

When I read this I could remember again.
So I thought the last Omicron attack has eaten up a part of my brain.

Stay healthy and best regards.

MUP

Re: Run Application: Use of Windows 10 Local Profiles

Posted: Wed Jan 26, 2022 11:52 am
by odklizec
You are welcome. Good to hear it helped ;)