Code: Select all
cd C:\Windows
start explorer.exe
%SendKeys% {TAB}{TAB}{TAB}{ENTER}
"%userprofile%\Desktop\Recycle Bin.lnk"
But the next part of my intended macro script simulating the above does not work. And that is because
Code: Select all
%SendKeys% {BACKSPACE}
Code: Select all
%SendKeys% ^Z
And then finally I would also need to somehow close this particular Window Explorer window
I tried using variants
Code: Select all
%SendKeys% {BS}
Code: Select all
%SendKeys% {BKSP}
Code: Select all
%SendKeys% {TAB}{TAB}{TAB}{ENTER}
And thus - to sum up:
Code: Select all
cd C:\Windows
start explorer.exe
"%userprofile%\Desktop\Recycle Bin.lnk"
%SendKeys% {BACKSPACE}
%SendKeys% ^Z
#2] opens unnecessary second window of Window Explorer showing the content of This PC
#3] lacks commands to close the recently opened Window Explorer window
Please help me