Modify Windows shortcuts using Python

前端 未结 5 809
被撕碎了的回忆
被撕碎了的回忆 2020-12-09 21:46

How do you change a Windows shortcut using Python?

e.g. from:

H:\\My Music\\some_file.mp3

to:

D:\\Users\\Myself\\My         


        
5条回答
  •  天命终不由人
    2020-12-09 22:15

    Here is how you can create a shortcut using Windows script host: http://msdn.microsoft.com/en-us/library/fywyxt64

    Try to write it to file from Python and run it dynamically.

提交回复
热议问题