Hi All,
This script was initially made in French by Alain Quarré, the author.
I found it,lot of people too, very convenient and easy to handle
so I asked the author for an english version,he kindly accepted to do
the changes and agreed that I post it in this forum
You can read his original post at Déplacer Mes Documents par défaut et par script : Personnalisation de Windows (in french)
All credits and thanks goes to him of course !
WARNING : This script don't apply any changes to the CURRENT USER !!
but only for the next ( and other created account(during activation)
This script is totally free,you can copy,modify and publish it
But using it will be at your own risks (there is none so far )
TIP : Best use of this script will be on a new or re-install of Seven
1) During install and when prompted to, choose a fake user name i.e. "test"
2) When Seven is first launched and ready,run the script ( NECESSARILY with administrator rights)
3) create a new user account with the good name this time,open a session with it and see that the folders you
defined are at the right place with the good and only junctions
4) "Test" account can, now be deleted !
That' all...Folks
How to make so that the users files are where one wants :
Lot of tutorials on the Net will show you how to move the files My Documents, My Images, Downloads, My Vidéos,…
Nevertheless, the most explained method (right click, properties, new placement,…) brings a problem.
This problem is related to the Junctions created at the time of the activation of the user account.
The junctions are there to redirect the writings on, for example, My documents If you move My Documents by right click, properties,...
My Documents will be,indeed, at the new place. But, in the User Folder, there will be always a junction " My Documents "
which will always point to the old place.
Move your files My Documents, then, note the state of the junctions
to verify, in a prompt command, type :
the junction still point to the original placeCode:dir "%userprofile%" /AL
To be sure,in same window type :
Look for test.txt, you will find him in old folder: C:\Users\%username%\DocumentsCode:dir c:>"%userprofile%\Mes Documents\test.txt"
very annoying,not to forget,that all moves must be done manually for all users
actual and to come
This script modify the "Default User" settings,as "Default User" is the model for new users
the changes are made in Seven in this folder : C:\Users\Default\NTUSER.DAT
After running the script,every new user will have his folders at the choosen place
and on first connexion, an other script ( automated ) will create the new junctions
that will point,this time,to the right place
the script to run is : PositionDefaultFolderSevenModular.cmd, necessarily with ADMINISTRATOR's RIGHTS !
The default choosen folder place is : D:\Documents\
If this place suits you than just hit Enter and let the script finish
To choose a specific folder place, you must edit the PositionDefaultFolderSevenModular.ini
the script will test the destination to match, before running !
Modular Script :
Modularity on :
the folders to move
The destination
If needed sub-folder per user or not
If needed to hide the destination folder
This script can move these folders :
My Documents
My Pictures
My Vidéos
My Music
Desktop
Favorites
History
Templates
Downloads
Saved Games
Contacts
Searches
Cookies
Links
Temporary Internet Files
CD Burning
In order to custom the script, you have to edit the PositionDefaultFolderSevenModular.ini
This is the original one :
Every line is specific of the folder to moveCode:My Documents*Personal*AddUserName*Security*Documents*D:\Documents My Pictures*My Pictures*AddUserName*Security*Pictures*D:\Documents My Videos*My Video*AddUserName*Security*Videos*D:\Documents My Music*My Music*AddUserName*Security*Music*D:\Documents Desktop*Desktop*AddUserName*Security*Desktop*D:\Documents Favorites*Favorites*AddUserName*Security*Favorites*D:\Documents Templates*Templates*AddUserName*Security*Templates*D:\Documents Downloads*{374DE290-123F-4565-9164-39C4925E467B}*AddUserName*Security*Downloads*D:\Documents Saved Games*{4C5C32FF-BB9D-43B0-B5B4-2D72E54EAAA4}*AddUserName*Security*Saved Games*D:\Documents Contacts*{56784854-C6CB-462B-8169-88E350ACB882}*AddUserName*Security*Contacts*D:\Documents Searches*{7D1D3A04-DEBB-4115-95CF-2F29DA2920DA}*AddUserName*Security*Searches*D:\Documents Links*{BFB9D5E0-C6A9-404C-B2B2-AE6DB6AF4968}*AddUserName*Security*Links*D:\Documents Cookies*Cookies*AddUserName*Security*Cookies*D:\CacheFolder*Hide-Sys History*History*AddUserName*Security*History*D:\CacheFolder Temporary Internet Files*Cache*AddUserName*Security*Temporary Internet Files*D:\CacheFolder CD Burning*CD Burning*NoUserName*NoSecurity*Burn*D:\CacheFolder\Burn
Every line contains 7 fields separated by *
Local name
Registry Value Name
AddUserName or NoUserName
Security or NoSecurity (Not used)
Sub-Folder Name
Move-to Position (NO BACKSLASH @end)
(Optional) "Hide-Sys" The moved folder will be system and therefore hidden
Only fields 3, 4, 6, 7 can be customized
Place the sign " smaller than " (<) at the beginning of the lines of the folder that you do not wish to move.
Enjoy:)
Downloads : http://www.gopc.be/Alain/PositionDef...Modular-ML.rar
Related Tutorials
- How to Change the Default Location of Windows 7 User Folders
- How to Restore the Default Location of Windows 7 User Folders
- How to Change the Default Program Files Directory for Installs
- How to Change the Windows 7 Default User Folder Icons
- How to Pin Your User Files Folder to the Windows 7 Taskbar
- How to Create Your Own Special User Folder
- How to Restore Windows 7 Default User Folder Icons
- How to Add or Remove your User Folder from the Windows 7 Navigation Pane
- How to Allow or Prevent Users to Move their User Folders to a New Location
- How to Change the Default Location of a User Profile in Windows 7 and Vista
- How to Customize Default User Profile in Audit Mode