#124344 - 2004-08-03 05:14 PM
change location "my documents" dont work
|
expodium
Fresh Scripter
Registered: 2004-07-14
Posts: 35
|
hi,
i try to change the my document folder from the c drive to a f drive (f:\my documents) but its seems that he dont change the location.
my source( yeah i known but use the function for other purpose also ):
Change_Favorites("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders","My Pictures","f:\my documents\My Pictures","REG_SZ") Change_Favorites("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders","Personal","f:\my documents","REG_SZ") Change_Favorites("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","My Pictures","f:\my documents\My Pictures","REG_EXPAND_SZ") Change_Favorites("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","Personal","f:\my documents","REG_EXPAND_SZ")
Function Change_Favorites($regKey, $subKey, $regValue, $regType) WriteValue($regkey, $subkey, $regValue, $regType) EndFunction
is there a other way to do?
i try also
WriteValue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders","personal","f:\my documents","REG_SZ")
but when i go see to the property's of "my documents" its still in the old directory (c:\documents and settings\etc....)
who known how to do this?
many many thanks in advance
expodium
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 1077 anonymous users online.
|
|
|