Windows特殊文件及目录

VirtualStore 文件夹

有时候应用程序会不断在 C:\Users\user\AppData\Local\VirtualStore 下产生新的文件:

It is usually older programs will attempt to save files / settings to a location that requires administrative rights which results in Windows writing the files to the virtualstore folder.

A marker is also created so that if the program accesses that file again, it will point to the file in the virtualstore folder.

So you are using an older program or one not designed for Vista, and its saving to that location, you may try updating the program.

Win10 Spotlight 锁屏背景文件夹

Windows 10 Spotlight 锁屏背景图片文件夹在此目录:

C:\Users\user\AppData\Local\Packages\Microsoft.Windows.ContentDeliveryManager_*\LocalState\Assets

可以编写 Win10 Bash 脚本将目录中的锁屏背景图片拷贝出来:

#!/bin/sh
[ -d test ] || mkdir test
ind=0
username=`whoami`
for i in `ls /mnt/c/Users/$username/AppData/Local/Packages/Microsoft.Windows.ContentDeliveryManager_*/LocalState/Assets/*`; do
    cp $i test/$ind.jpg
    ind=`expr $ind + 1`
done

启动项目文件夹

当前用户的启动项目:

C:\Users\user\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

公用的启动项目:

C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup