Get last used path from explorer in powershell

39 views Asked by At

Is it possible to get the path of the folder that was used by the user in the file explorer last in powershell?

For example, if you have the folders "Programming/Projects" on your desktop and you go to this folder through the file explorer. Then I want to execute something in powershell by pressing a button which gets this path and opens VS Code in this path (in this case "code C:\Users\user\Desktop\Programming\Projects". But I don't know how I can get this path. I don't want to get it through a dialog.

0

There are 0 answers