0

I want to set Windows Explorer startup path with python.

like this. %windir%\explorer.exe C:\Users.This is a global setting.

it’s need pywin32 or cmd or regedit?

please help me。 thanks

Anthony
  • 670
  • 6
  • 20
ACEE
  • 23
  • 7
  • You can launch explorer to a startup path as a one-off thing with `explorer.exe /root,c:\users` ( see: http://support.microsoft.com/kb/314853 ) ... but what do you mean "set the startup path" and "this is a global setting" and "does it need regedit"? Can you give examples of what you want? e.g. "person clicks {here}, Explorer shows {something}" ? – TessellatingHeckler Mar 28 '14 at 19:39
  • hi masters, I want to set its default path. like this:http://www.winhelponline.com/blog/windows-explorer-defaults-libraries-folder-windows-7/ – ACEE Mar 28 '14 at 19:46

1 Answers1

1

That link in your comment looks to be modifying a .lnk shortcut file's target property.

Python with PyWin32:

or PowerShell:

The default explorer link might be in C:\ProgramData\Microsoft\Windows\Start Menu\Programs\

Community
  • 1
  • 1
TessellatingHeckler
  • 27,511
  • 4
  • 48
  • 87