如何以编程方式移动图标Windows 桌面的位置?
我希望创建一个启动作业,每次我的 Windows 启动时,它都会将一些快捷方式图标从我的桌面重新排列到另一个位置,例如右下角。
我可以使用 VBScript、Powershell、bat 命令脚本甚至 C\C++\C#\Java 来实现吗?
I wish to create a startup job that every time that my Windows starts, it will rearrange some shortcut icons from my desktop to another location, such as right-bottom for example.
Can I make it with VBScript, Powershell, bat command script or even with C\C++\C#\Java?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
桌面是一个普通的列表视图,因此您可以使用 Windows api 将项目移动到不同的位置。看看这个类似的问题:How can I programmatically Operate Windows桌面图标位置?
Desktop is an ordinary listview so you can use windows api to move items to different locations. Have a look at this similar question: How can I programmatically manipulate Windows desktop icon locations?
我来晚了,但这段代码对我有用,我希望它可以帮助别人。它是用c++17编写的。
I come late, but this piece of code works for me and I hope it may help somebody. It's in c++17.