Jump to content

Recommended Posts

Posted

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 Thanks

Worf


Posted

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.

Posted

Hi Siginet

Not 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:\Desktop

D:\MyDocuments

What 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?

Posted

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:\MyDocuments

REG ADD HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders /v Personal /t REG_SZ /d "%MYDOCS%" /f

Posted

Hi durex

This 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 :P 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

Posted

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

Posted

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...)

Posted

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!!

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...