|
阅读:1030回复:0
为服务新建Script工具栏和快速启动
时常我们需要反复启动和停止各类服务,如ArcGIS Server。然而每次都找控制面板中的services管理器,是不是有点麻烦!为此有一种更方便的方法来管理服务,就是在任务栏新建Script工具栏和Shortcut。如下图所示:
<P> <a href="http://www.3snews.net/batch.download.php?aid=3461" target="_blank" ><IMG src="http://www.3snews.net/attachments/2008/05/8858_200805091205271.png" border=0></A> </P> <P><STRONG>Step1. 新建toolbar文件夹script和batch,任意位置:</STRONG></P> <P> 如:C:\Toolbars\Scripts;C:\Toolbars\Batch。</P> <P><STRONG>Step2. 新建script:</STRONG></P> <P> 在batch文件夹中新建TEXT文件,并修改为.bat,如:Restart ArcGIS Server.bat。</P> <P><STRONG>Step3. 输入Command Script:</STRONG></P> <P> 编辑bat文件,输入Command Script并保存,如:</P> <P> net stop "ArcGIS Server Object Manager"<BR> net start "ArcGIS Server Object Manager" <a href="http://technet.microsoft.com/en-us/library/bb491071.aspx" target="_blank" >a number of commands</A></P> <P><STRONG>Step4. 创建Shortcuts和添加icons:</STRONG></P> <P> 右键bat文件拖至Script文件夹,并点创建快捷方式,然后点击快捷方式文件的属性,更改图标,指定到icons或exe或dll,如<ArcGIS install>\bin\ArcCatalog.exe。</P> <P><STRONG>Step5. Add the folder as a new toolbar:</STRONG></P> <P> 在任务栏新建工具栏,并指定到Script文件夹。</P> <P> 此外,我们可以建立更多的Script来管理服务,如IIS,并可以建立子文件夹进行分类。同样可以建立Shortcuts to files or folders, such as a log folder or a configuration file。<BR> <BR><STRONG> Samples Download: </STRONG><a href="http://www.cnblogs.com/Files/cosophy/Toolbars.rar" target="_blank" ><FONT color=#2222dd><STRONG>Toolbars for Scripts</STRONG></FONT></A><BR></P> |
|
|