How to generically refer to the AppData folder on the Windows command ...
superuser.com
The original User's Profile directory lives in a directory like C:\Users\username\AppData. How can I refer to the current user's profile directory when using the Windows command line? By searching I found out about %UserProfile% that perhaps refer to the current username, but it does not really work.
windows - What is "%AppData%"? - Super User
superuser.com
The AppData\Local and AppData\Roaming locations are the preferred locations for applications to store data that is not required to be exposed to the user. In a domain environment, the Roaming is used to copy the user's environment as they log on to different computers. You can find a description in the Windows File System Namespace Usage ...
Saving data: Program Files vs AppData [Windows] - Super User
superuser.com
In AppData however, the user always have rights to write there, even if they are not administrators. So a program that needs to write data, for example a webbrowser with its cache will have to use AppData to write that cache or the user would get an UAC prompt asking for administrative access everytime they start the program.
Where are Notepad temp/unsaved .txt files located? - Super User
superuser.com
My guess would be \AppData\Local\Temp, but keep in mind they may not be .txt files. Word for instance when doing autosaves generates .tmp files, so if notepad is using a similar mechanism then it may also be using a similar naming scheme.
Is it safe to delete AppData\Local\Temp? - Super User
superuser.com
If this is the case you might want to use clean-up instead of doing the process manually. Go to Run and type cleanup: Then click Disk Cleanup and choose a drive. Window will pop up where you will be able to select for deletion of temporary (and other mostly useless) files from multiple locations, not just C:\Users\ [Username]\AppData\Local\Temp.