标题: 请教 如何使用批处理保存与恢复桌面图标的位置?
[打印本页]
作者: icydawn
时间: 2009-7-12 08:25
标题: 请教 如何使用批处理保存与恢复桌面图标的位置?
电脑的桌面分辨率在使用集成显卡时是1280x800,使用独立显卡的时候是1440x900的,每次切换的之后原先的桌面图标乱的一塌糊涂。有没有办法使用批处理将两种分辨率的桌面图标的坐标保存下来,使用的时候通过选择到相应的桌面。
以前也接触过批处理,有点点基础,可是这个却是一头雾水,不知道该怎么操作,个人感觉应该是和注册表相关,请教大家,不胜感激!
[
Last edited by icydawn on 2009-7-12 at 08:27 ]
作者: tireless
时间: 2009-7-12 09:05
DesktopCmd.exe
http://www.midiox.com/desktoprestore.htm
下载:
http://upload.cn-dos.net/img/1606.zipDesktopCmd Ver: 1.5.4.019 Copyright (c) 2008 by Jamie O'Connell
Too few arguments.
Usage: DesktopCmd [<save | restore | query> /n "Layout" /y /?]
/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 Quote: |
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 ]
作者: icydawn
时间: 2009-7-12 10:58
谢谢!如果不使用其他工具,使用批处理的命令可是实现吗?
这样的话,我就能够在其他的机器上运行下批处理就可以了,不胜感谢!
作者: slore
时间: 2009-7-12 11:01
貌似在注册表用的2进制存储的。。。二进制。。。所以格式不太明确
作者: yishanju
时间: 2009-7-13 12:56
有好的工具直接用了,腾出的时间可以放在其它更有价值的事情上
作者: DOSforever
时间: 2009-7-13 13:03
我有个类似的问题:
怎么把快速启动栏中图标的排列顺序位置记录下来?