Jump to content

User Folders And Shortcuts


Recommended Posts

Here is a tool to automatize the creating of folders & shortcuts, especially in the Start Menu:

:: -------------------------------------------------------------------------------
:: InstallFolders.cmd: Add, Move and Delete users specific folders and shortcuts.
:: ------------------
::
:: Purpose: Add/Delete/Move shortcuts in the Start Menu,
::          Add/Delete      shortcuts on Desktop and in Quick Launch folders, Shortcuts,
::                                        Cookies, SendTo, Favorites, Models,...
::                                        (i.e. all under a user profile,
::                                        or under the All Users profiles).
::
:: Description:
:: -----------
::      1. All the folders and shortcuts under the Add\ sub-folder are created under
::         "C:\Documents and Settings\ (in fact, under "%ALLUSERSPROFILE%\..").
::         So, keep the same structure to put shortcuts in the Quick Launch bar,...:
::             Add\<user>\Application Data\Microsoft\Internet Explorer\Quick Launch
::             Add\<user>\Favorites
::             ...
::
::      2. InstallFolders.cmd scans the Move\<user>\ folder and try to find folders and
::         shortcuts of same name in %DEFAULTPROFILE%\StartMenu\, %ALLUSERSPROFILE%\StartMenu\
::         and %USERPROFILE%\StartMenu\, and, if found, move these to the one
::         specified in Move\<user>\.
::         So, you can move a specific folder which is in the start menu of the
::         current user (normally, Administrator) to the "All Users" start menu.
::         If a folder somewhere under Move\ is empty, the whole folder is moved;
::         otherwise, only the content of this folder (shortcuts) is moves.
::
::       3. InstallFolders.cmd scans the Delete\ folder; if an empty folder is found,
::          the corresponding folder is deleted; otherwise, only the files
:           (normally, shortcuts) are deleted.
::
:: Parameter:
:: ---------
::     1.   TRACE to display tons of informations;
::       or TEST to display the actions that will be executed without executing them
::          (TEST impies TRACE);
::     or nothing.
::
:: Why this program?
:: ----------------
::     Because during unattended Windows installation, I wanted to reorder all of my
::     shortcuts and folders in the GUI.
::
:: How to use it?
:: -------------
::     1. Create the folder "InstallFolders" (for unattended Windows installation,
::        it should be "$OEM$\$1\InstallFolders").
::
::        1.1 Put this batch file into this folder.
::        1.2 Create the file "xxx.StartMenu" in the current folder where "xxx" is
::            the name of the Start Menu (which is normally under
::            "C:\Documents and Settings\All Users\").
::
::     2. Under this folder, create the following structure :
::        (Note: For Move, only "Start Menu" is allowed)
::              InstallFolders\
::                  Add\  or  Move\  or  \Delete
::                      Administrator\  or  All Users\  or  Default User\ or ...
::                          Application Data\
::                              Microsoft\
::                                  Internet Explorer\
::                                      Quick Launch\
::                                          any shortcuts you want to be here
::                          Desktop
::                              any shortcuts and folders you want to be here
::                          Start Menu
::                              any shortcuts and folders you want to be here
::                              (this could be "Programs\Accessories\Communications\xxx.lnk")
::                          ... (other folders as Cookies,...)
::
::        2.1. Note that, for Add\, shortcuts should have a good target, icon path,...,
::             so use %ProgramFiles% instead of absolute paths like "C:\Program Files\...".
::             There is a SHORTCUTS.EXE DOS utility to do this.
::             For Move\ and Delete\, only the name is used.
::        2.2. To create a shortcut to some special program, it is easier to copy the
:              exiting shortcut: it is the case with Msn Messenger, Paint Shop Pro,...
::        2.3. Some folders cannot be moved (i.e. Administration Tools)
::
::     3. For my unattended Windows installation, I call InstallFolders.cmd in REBOOT2.CMD
::        after all of my applications are installed.
:: -------------------------------------------------------------------------------

Here is an example of an extract of my InstallFolders\ folders (sorry for the length):

InstallFolders
|   InstallFolders.cmd
|
+---Add
|   +---Administrateur
|   |   +---Application Data
|   |   |   \---Microsoft
|   |   |       \---Internet Explorer
|   |   |           \---Quick Launch
|   |   |                   Active Registry Monitor.lnk
|   |   |                   Beyond Compare 2.lnk
|   |   |                   Bloc-notes.lnk
|   |   |                   Bureau.scf
|   |   |                   Invite de commandes.lnk
|   |   |                   Jasc Paint Shop Pro 9.lnk
|   |   |                   KeyNote.lnk
|   |   |                   Lecteur Windows Media.lnk
|   |   |                   MSN Messenger 6.2.lnk
|   |   |                   Nero Burning ROM.lnk
|   |   |                   Panneau de configuration.lnk
|   |   |                   PSPad editor.lnk
|   |   |                   RegStudio.LNK
|   |   |                   Siren.lnk
|   |   |                   _XPCREATE 6_05.lnk
|   |   |
|   |   +---Bureau
|   |   |       Ad-Aware SE Personal.lnk
|   |   |       DefragAllVbs.bat.lnk
|   |   |       HijackThis Evaluation du log.url
|   |   |       HijackThis.lnk
|   |   |       IP2.lnk
|   |   |       ReBoot sur C.lnk
|   |   |       ReBoot sur D.lnk
|   |   |       Restauration du système.lnk
|   |   |       SpywareBlaster.lnk
|   |   |       Stop ReBoot.lnk
|   |   |       WNTIPCFG.lnk
|   |   |
|   |   +---Cookies
|   |   |       michel@autoitscript[1].txt
|   |   |       administrateur@autoitscript[1].txt
|   |   |
|   |   +---Favoris
|   |   |   \---Liens
|   |   |       |   !Network tools.url
|   |   |       |   Batch Files, Rexx, KiXtart, Perl, VBScript.url
|   |   |       |
|   |   |       +---BC
|   |   |       |       BC Translation.url
|   |   |       |       Forums.url
|   |   |       |
|   |   |       +---WinXP Unatt
|   |   |           |   Hotfix Slipstream Guide.url
|   |   |           |
|   |   |           \---MSFN
|   |   |                   !! MSFN's Unattended XP CD - Introduction.url
|   |   |                   !!! MSFN - Hotfixes For Windows XP Professional SP1.url
|   |   |                   !!! MSFN - Hotfixes For Windows XP Professional SP2.url
|   |   |                   MSFN - XPCREATE.url
|   |   |                   MSFN New Posts.url
|   |   |
|   |   \---Menu Démarrer
|   |       \---Programmes
|   |           +---Accessoires
|   |           |   \---Outils système
|   |           +---Démarrage
|   |                   AllChars.lnk
|   |                   KeyNote.lnk
|   |                   RestoreIcons.lnk
|   |                   Souris VB IDE.LNK
|   |                   SpywareGuard.lnk
|   |
|   \---All Users
|       +---Bureau
|       \---Menu Démarrer
|           \---Programmes
|               +---_Bureau
|               |   \---KeyNote
|               |           KeyNote Readme.lnk
|               |           KeyNote website.lnk
|               |           KeyNote.lnk
|               |           Uninstall KeyNote.lnk
|               |
|               +---_Outils
|               |   \---Système
|               \---_Palm
+---Delete
|   +---Administrateur
|   |   +---Application Data
|   |   |   \---Microsoft
|   |   |       \---Internet Explorer
|   |   |           \---Quick Launch
|   |   |                   Ad-Aware SE Personal.lnk
|   |   |                   Nero StartSmart.lnk
|   |   |
|   |   +---Bureau
|   |   |       Beyond Compare 2.lnk
|   |   |       PSPad.lnk
|   |   |       SpywareGuard LiveUpdate.lnk
|   |   |
|   |   \---Menu Démarrer
|   |       \---Programmes
|   |           |   Connexion Bureau à distance.lnk
|   |           |   Lecteur Windows Media.lnk
|   |           |
|   |           +---Accessoires
|   |           |   \---Communications
|   |           |           Connexion Bureau à distance.lnk
|   |           |
|   |           \---Microsoft Calculatrice Plus
|   \---All Users
|       +---Bureau
|       |       ACD FotoSlate 3.1.lnk
|       |       ACD Photo Editor 3.1.lnk
|       |       ACDSee 7.0.lnk
|       |       Adobe Reader 7.0.lnk
|       |       Nero StartSmart.lnk
|       |       SnagIt 7.lnk
|       |
|       \---Menu Démarrer
|           \---Programmes
|               |   Windows Media Connect.lnk
|               |
|               +---Outils d'administration
|               \---WinRAR
\---Move
   +---Administrateur
   |   \---Menu Démarrer
   |       \---Programmes
   |           +---Accessoires
   |           |   \---Outils système
   |           |           Activation de Windows.lnk
   |           |           Catalogue Windows.lnk
   |           |           Configurer les programmes par défaut.lnk
   |           |           Windows Update.lnk
   |           |
   |           +---_Bureau
   |           |   +---FileBox eXtender
   |           |   \---IconSaver
   |           +---_Développement
   |           +---_Gravage
   |           +---_Généalogie
   |           +---_Internet
   |           |   +---AceFTP 3 Freeware
   |           |   +---DzSoft Favorites Search
   |           |   +---GetRight
   |           |   +---POPFile
   |           |   +---PrintMe Internet Printing
   |           |   +---SpywareBlaster
   |           |   \---SpywareGuard
   |           +---_Multimédia
   |           |   |   Microsoft Money.lnk
   |           |   |   Windows Movie Maker.lnk
   |           |   |
   |           |   \---K-Lite Codec Pack
   |           +---_Outils
   |           |   |   Visionneuse Journal Windows.lnk
   |           |   |   Windows Messenger.lnk
   |           |   |
   |           |   +---AutoIt v3
   |           |   +---Beyond Compare 2
   |           |   +---FileBack PC
   |           |   +---Lavasoft Ad-Aware SE Personal
   |           |   +---Powertoys for Windows XP
   |           |   \---Système
   |           |       +---Active Registry Monitor
   |           |       +---Norton Ghost 2003
   |           |       +---Outils d'administration
   |           |       +---Powertoys for Windows XP
   |           |       \---RegStudio
   |           +---_Palm
   |           |   +---Agendus Standard
   |           |   +---AvantGo
   |           |   +---BackupBuddy
   |           |   \---Palm Desktop
   |           \---_Téléphone
   \---All Users
       \---Menu Démarrer
           \---Programmes
               +---Accessoires
               |       Microsoft Calculatrice Plus.lnk
               |
               +---_Bureau
               |   \---SnagIt 7
               +---_Gravage
               |   \---Nero
               +---_Internet
               |       Internet Explorer.lnk
               |       MSN Messenger 6.2.lnk
               |       Outlook Express.lnk
               |
               +---_Multimédia
               |   +---ACD Systems
               |   +---Jasc Software
               |   \---Kodak
               \---_Outils
                   |   Adobe Reader 7.0.lnk
                   |
                   +---PSPad
                   +---Système
                   |       Assistance è distance.lnk
                   |
                   \---WinRAR

Current version: 2005/08/18: New definition of the Start Menu.

InstallFolders.cmd.txt

Edited by mdes
Link to comment
Share on other sites

  • 5 months later...

i've tried to use this but it doesn't work for me, i want to add my hard drive and CD DVD disk drive shortcuts to the desktop, could you give an example how this could be done, please?

Link to comment
Share on other sites

i've tried to use this but it doesn't work for me, i want to add my hard drive and CD DVD disk drive shortcuts to the desktop, could you give an example how this could be done, please?
Hi chyronn,

You just have to create a shortcut of the folders you want in the folder

InstallFolders\Add\Administrateur\Bureau\

"Bureau", which is in French, should be replaced by "Desktop", and "Administrateur" by "Administrator".

So, first create the above folder, then in the Windows Explorer, then after, create the shortcuts by right clicking in the created folder, choosing "New" / "Shortcut", and selecting the Desktop or your CD/DVD disk drive.

Beware! I made some changes in the batch (download the last version, and see the 1.2 point in the description above).

I any problem, ask :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...