问题描述
您好!
我需要在Windows 8.1 x64上保存和恢复桌面图标。有但它实际上并没有在我的电脑上工作。不幸的是我无法确定问题是什么,因为项目的结构对我来说非常复杂(作者使用xaml,deigates等)因为我是C#的新手。
所以我想问你是否有一个现成的解决方案可以解决这个问题的任何编程语言?
或者可能调查过这个问题并知道要走哪个方向?
谢谢!
PS我知道像desktopOK这样的现成实用程序,但我需要编译脚本或代码。
我尝试过:
实际上我发现了解决方案,但实在是太糟糕了。由于有关桌面图标位置的已知信息包含在HKCU \Software \ Microsoft \ Windows \ Shell \ Bags \\\\Desktop \ItemPos ###中,其中### - 桌面分辨率。 />
所以你需要的是:
1.出口HKCU \Software \ Mycoftoft \ Windows \Shell \ Bags \ 1 \Desktop
2.杀死explorer.exe进程
3.导入HKCU \Software \ Microsoft \ Windows \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\桌面
4.启动explorer.exe进程
所以在任何程序或脚本语言上发布都非常容易。但是杀死explorer.exe并不是真正的编程方式...
Hi there!
I need to save and restore desktop icons on Windows 8.1 x64. There is the solution but it actualy doesn't poperply work on my PC. Unfortunately I'm unable to determine what's the problem because the structure of the project is very complicated for me (the author uses xaml, deigates, etc.) because I'm a newbie on C#.
So I want to ask you maybe there is a ready solution on any programming language that solves that problem?
Or maybe has investigated this question and know in what direction to go?
Thank you!
P.S. I know about ready utilities like DesktopOK but i need a script or a code to be compiled.
What I have tried:
Actually I found out the solution but it's awful. As known information about desktop icons position contains in HKCU\Software\Microsoft\Windows\Shell\Bags\1\Desktop\ItemPos###, where "###" - Desktop resolution.
So all you need is:
1. Export HKCU\Software\Microsoft\Windows\Shell\Bags\1\Desktop
2. Kill explorer.exe process
3. Import HKCU\Software\Microsoft\Windows\Shell\Bags\1\Desktop
4. Start explorer.exe process
So it's really easy to release on any program or script language. But killing explorer.exe is not true programming way...
推荐答案
这篇关于保存并恢复桌面图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!