中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --

联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!

中国DOS联盟论坛
现在时间是 2026-08-12 05:21
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » 请教 如何使用批处理保存与恢复桌面图标的位置? 查看 1,178 回复 5
楼 主 请教 如何使用批处理保存与恢复桌面图标的位置? 发表于 2009-07-12 08:25 ·  中国 江苏 南京 联通
初级用户
积分 54
发帖 22
注册 2007-02-10 02:42
19年会员
UID 79107
性别 男
状态 离线
电脑的桌面分辨率在使用集成显卡时是1280x800,使用独立显卡的时候是1440x900的,每次切换的之后原先的桌面图标乱的一塌糊涂。有没有办法使用批处理将两种分辨率的桌面图标的坐标保存下来,使用的时候通过选择到相应的桌面。
以前也接触过批处理,有点点基础,可是这个却是一头雾水,不知道该怎么操作,个人感觉应该是和注册表相关,请教大家,不胜感激!

[ Last edited by icydawn on 2009-7-12 at 08:27 ]
2 发表于 2009-07-12 09:05 ·  中国 江西 赣州 电信
银牌会员
★★★★
积分 2,025
发帖 1,122
注册 2007-09-05 20:15
18年会员
UID 96653
性别 男
状态 离线
DesktopCmd.exe
http://www.midiox.com/desktoprestore.htm
下载: http://upload.cn-dos.net/img/1606.zip

DesktopCmd Ver: 1.5.4.019 Copyright (c) 2008 by Jamie O'Connell
Too few arguments.
Usage: DesktopCmd
/n "Layout" - Use the named layout for save or restore.
- Quote "Layout" if it contains embedded spaces.
/y - Answer 'yes' to any questions: silent operation.
/? - Display this text.


------

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 发表于 2009-07-12 10:58 ·  中国 江苏 南京 联通
初级用户
积分 54
发帖 22
注册 2007-02-10 02:42
19年会员
UID 79107
性别 男
状态 离线
谢谢!如果不使用其他工具,使用批处理的命令可是实现吗?
这样的话,我就能够在其他的机器上运行下批处理就可以了,不胜感谢!
4 发表于 2009-07-12 11:01 ·  中国 陕西 西安 电信
铂金会员
★★★★
积分 5,212
发帖 2,478
注册 2007-02-08 23:39
19年会员
UID 79003
性别 男
状态 离线
貌似在注册表用的2进制存储的。。。二进制。。。所以格式不太明确
S smile 微笑,L love 爱,O optimism 乐观,R relax 放松,E enthusiasm 热情...Slore
5 发表于 2009-07-13 12:56 ·  中国 北京 联通
银牌会员
★★★★
[b]看你妹啊[/b]
积分 1,488
发帖 1,357
注册 2006-05-20 12:00
20年会员
UID 55770
状态 离线
有好的工具直接用了,腾出的时间可以放在其它更有价值的事情上

有问题请发论坛或者自行搜索,再短消息问我的统统是SB
6 发表于 2009-07-13 13:03 ·  中国 上海 电信
金牌会员
★★★★
积分 4,639
发帖 2,239
注册 2005-01-30 00:00
21年会员
UID 35785
性别 男
状态 离线
我有个类似的问题:
怎么把快速启动栏中图标的排列顺序位置记录下来?
论坛跳转: