AW: change path to my files

AW: [wxPython-users] change path to my files
Mike,

thank you for your efforts…

which definitely does have SHGetFolderPath.

yeah … but I was looking for SH SET Folder Path … to change it G

I learned: to change the Path to the “Own files”:

Sh=win32com.client.Dispatch(“Wscript.Shell”)

MyDocsPath1=Sh.RegRead(“HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Personal”)

Sh.RegWrite(“HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell\Folders\Personal”, “path to new path”)

but it does not work G

by

Harald

Ah, sorry I missed the G -> S change in there. AFAICT, there's nothing obvious for changing the folder value at run-time (the registry-writing stuff all seems to require a reboot before it comes into effect). However, I would think you could simply configure the synchronisation settings to either do live synchronisation or not do any at all? Don't know, as I'm not really a sysadmin.

Good luck,
Mike

Massa, Harald wrote:

···

Mike,

thank you for your efforts...

>which definitely does have SHGetFolderPath.
yeah ... but I was looking for SH SET Folder Path ... to change it *G*

I learned: to change the Path to the "Own files":

Sh=win32com.client.Dispatch("Wscript.Shell")
MyDocsPath1=Sh.RegRead("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Personal")

Sh.RegWrite("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell\Folders\Personal", "path to new path")

but it does not work *G*

by

Harald

--
_______________________________________
  Mike C. Fletcher
  Designer, VR Plumber, Coder
  http://members.rogers.com/mcfletch/