简体   繁体   中英

Windows Vista Programmatically remap user directories

I re-image one of my machines regularly; and have a script that I run after the OS install completes to configure my machine; such that it works how I like.

I happen to have my data on another drive...and I'd like to add code to my script to change the location of the Documents directory from "C:\\Users\\bryansh\\Documents" to "D:\\Users\\bryansh\\Documents".

Does anybody have any insight, before I fire up regmon and really roll up my sleeves?

我使用重新解析点http://www.hanselman.com/blog/MoreOnVistaReparsePoints.aspx来重定向“我的文档”。

SHSetFolderPath功能应该帮助,因为文章中提到的组策略API的文件夹重定向使用。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM