中国DOS联盟论坛

中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --
联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
游客 | 登录 | 注册 | 会员 | 搜索 | 中国DOS联盟
中国DOS联盟论坛
现在时间是 2026-08-12 03:32
47,811 主题排行 / 349,897 发帖 / 今日 0 篇 / 48,256 会员排行
DOS批处理 & 脚本技术(批处理室) » 请教 如何使用批处理保存与恢复桌面图标的位置?
可打印版本  1,176 / 5
第1楼 icydawn 发表于 2009-07-12 08:25
初级用户 发帖 22 积分 54
请教 如何使用批处理保存与恢复桌面图标的位置?
电脑的桌面分辨率在使用集成显卡时是1280x800,使用独立显卡的时候是1440x900的,每次切换的之后原先的桌面图标乱的一塌糊涂。有没有办法使用批处理将两种分辨率的桌面图标的坐标保存下来,使用的时候通过选择到相应的桌面。
以前也接触过批处理,有点点基础,可是这个却是一头雾水,不知道该怎么操作,个人感觉应该是和注册表相关,请教大家,不胜感激!

[ Last edited by icydawn on 2009-7-12 at 08:27 ]
第2楼 tireless 发表于 2009-07-12 09:05
银牌会员 发帖 1,122 积分 2,025
DesktopCmd.exe
http://www.midiox.com/desktoprestore.htm
下载: http://upload.cn-dos.net/img/1606.zip



------

DeskSave.exe
http://www.desksave.de/index.php?lang=en

Command line mode

All actions invoked by command line parameters are executed without prior confirmation, no matter which

settings have been made. If the settings are to be considered anyway, the parameter /dlg has to be passed as well.

After a successful execution 0 is returned as exit code.

DeskSave can be started with the following command line parameters:

/s
Saves the desktop icon layout for the current screen resolution as primary layout. Does not create a system tray icon.

/r
Restores the desktop icon layout according to the saved primary layout. Does not create a system tray icon.

/sf filename
Saves the desktop icon layout to a .dsv file. Does not create a system tray icon.

/rf filename
Restores the desktop icon layout according to a .dsv file. Does not create a system tray icon.

/t
A system tray icon is created.

/nosplash
DeskSave does not show a splash screen at start.

/port
Starts DeskSave in portable mode. DeskSave does not leave any traces on the system, which may e.g. be useful when starting from a USB flash drive. Settings are saved to Options.ini in the directory from which DeskSave was started, provided that there is write permission for this directory.

The batch file DeskSavePortable.bat can be used to easily start DeskSave in portable mode, command

line parameters can also be passed to this batch file.

Examples:
DeskSave /s saves the desktop icon layout as primary layout without confirmation
DeskSave /s /dlg as above, with confirmation
DeskSave /rf MyLayout.dsv restores the desktop icon layout according to MyLayout.dsv
DeskSave /rf MyLayout.dsv /port as above, however without leaving traces on the system
DeskSave /nosplash /port starts without splash screen in portable mode with system tray icon


[ Last edited by tireless on 2009-7-12 at 09:31 ]
第3楼 icydawn 发表于 2009-07-12 10:58
初级用户 发帖 22 积分 54
谢谢!如果不使用其他工具,使用批处理的命令可是实现吗?
这样的话,我就能够在其他的机器上运行下批处理就可以了,不胜感谢!
第4楼 slore 发表于 2009-07-12 11:01
铂金会员 发帖 2,478 积分 5,212
貌似在注册表用的2进制存储的。。。二进制。。。所以格式不太明确
第5楼 yishanju 发表于 2009-07-13 12:56
银牌会员 发帖 1,357 积分 1,488
有好的工具直接用了,腾出的时间可以放在其它更有价值的事情上
第6楼 DOSforever 发表于 2009-07-13 13:03
金牌会员 发帖 2,239 积分 4,639
我有个类似的问题:
怎么把快速启动栏中图标的排列顺序位置记录下来?
[ 联系联盟系统管理团队 - 中国DOS联盟 - 标准版 ]
Sponsored by ifanr Inc | © 2001–2023