Worf Posted February 4, 2005 Posted February 4, 2005 Hi All.I keep my 'Desktop, My Documents' ect, on a different partition.Is it possible to get setup to do a scan of the drives for these folders so that it will point to them instead if the default location?I don't want to put a fixed drive letter in the setup file just incase i move these folders to another drive/partition.Many ThanksWorf
Siginet Posted February 5, 2005 Posted February 5, 2005 Would "%homepath%\Desktop""%homepath%\My Documents"work for you?Sorry I'm not sure exactly what you want to do... but this code should point to your docs & Desktop folders.
Worf Posted February 5, 2005 Author Posted February 5, 2005 Hi SiginetNot sure but i will try it. As said, i need to be able to get windows to look for these folders while it is setting up, and once setup has found these folders it will set the correct path to these saving me to have to do it manualy when setup has finished.Example:My Desktop and my documents are on D: drive and the path would be:D:\DesktopD:\MyDocumentsWhat i don't want to do it to have like 'D:\Desktop' in the setup file and telling setup that they are going to be there and not in the default location. I want to be able to get setup to look for them.i hope this makes it a bit more clear as to what i want to do?
durex Posted February 5, 2005 Posted February 5, 2005 This should work... assuming MyDocuments will always be in the root of your drive...a little modification of the CDROM search code....for %%a in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist %%a:\MyDocuments set MYDOCS=%%a:\MyDocumentsREG ADD HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders /v Personal /t REG_SZ /d "%MYDOCS%" /f
Worf Posted February 5, 2005 Author Posted February 5, 2005 Hi durexThis could be what i'm looking for, just hope it works.My Documents are not on the root of my drive but in a folder, as this is a shared Computer.i.e Bills_data\Janes_data\Just thought of a problem when it does a search it will find two my documents folders Mine and my wifes.for %%a in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist %%a:\MyDocuments set MYDOCS=%%a:\MyDocuments
rendrag Posted February 5, 2005 Posted February 5, 2005 my experience has been that if you have more than 1 "My Documents" folder, if you log in as "A" user for example, then you would see a My Documents folder, and a "B's Documents" folder (assuming the other user was named B). So as long as you specify which folder to set as the My Documents folder, you should be set.I hope that made sense
tjhart85 Posted February 5, 2005 Posted February 5, 2005 You could do something like if %computername%==MINE and then have it point to your MY DOCUMENTS directory, and do the same kind of thing for your wife's (that is if you have a set name you create for your installation and a different name you make for your wife's.I personally use a multiboot system and have my installation and have another for my girlfriend. It allows me to install everything I want on my computer and the stuff she wants (including custom computer names for each and themes, etc...)
paddy100 Posted February 5, 2005 Posted February 5, 2005 Hi,I have My Documents in the root of D:\ and have moved Favourites to my backup folder. Then I made a reg file with the following[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders]"Favorites"="D:\\Backup\\Favorites""Personal"="D:\\Paddys Documents""My Pictures"="D:\\Paddys Documents\\My Pictures"In that reg key you will also recognise some othe folders - simply change as required., and export the regkey to a file.Hope this helps - Works for me!!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now