您好,欢迎来到 - 67学习网 - http://www.67xuexi.com !

windows批处理获取更新软件

摘要:) else (110set alart=暂时还没有新版本,你就等等吧。111goto :menu112)113wgdowntest::114:wgdowntest115title !wyipaddress!116if exist !wyipaddress!!gpath!*.exe (117del /q I-signal_Setup118mkdir I-signal_Setup119xcopy /j /d /i !wyipaddress!!gpath!*.exe .I-signal_Setup120move .I-signal_Setup*.exe .I-signal_SetupSetup.exe121del /q !wyipaddress!!gpath!*.exe122exit123) else (124set alart=暂时还没有新版本,你就等等吧。125goto :menu126)127128modify ssh::129:modssh130copy %sshxmlpath% %sshxmlpath%.bak131cls132set ip=%ip%133s
windows批处理获取更新软件,标签:电脑常识大全,http://www.67xuexi.com

  ) else (

  110

  set alart=暂时还没有新版本,你就等等吧。

  111

  goto :menu

  112

  )

  113

  ::::::::::::::::::::::::::::::::wgdowntest::::::::::::::::::::::::::::::

  114

  :wgdowntest

  115

  title !wyipaddress!

  116

  if exist !wyipaddress!!gpath!*.exe (

  117

  del /q I-signal_Setup

  118

  mkdir I-signal_Setup

  119

  xcopy /j /d /i !wyipaddress!!gpath!*.exe .I-signal_Setup

  120

  move .I-signal_Setup*.exe .I-signal_SetupSetup.exe

  121

  del /q !wyipaddress!!gpath!*.exe

  122

  exit

  123

  ) else (

  124

  set alart=暂时还没有新版本,你就等等吧。

  125

  goto :menu

  126

  )

  127

  128

  ::::::::::::::::::::::::::::::::modify ssh::::::::::::::::::::::::::::::

  129

  :modssh

  130

  copy %sshxmlpath% %sshxmlpath%.bak

  131

  cls

  132

  set ip=%ip%

  133

  set port=%port%

  134

  set /p ip=请输入添加的IP[%ip%]:

  135

  set /p port=请输入添加的端口[%port%]:

  136

  137

  for /F "delims=;" %%i in ( %sshxmlpath% ) do (

  138

  echo %%i 》test.xml

  139

  for %%j in ( %%i ) do (

  140

  if %%j == ^

  141

  echo ^ ^ 》 test.xml

  142

  echo 添加成功

  143

  pause )

  144

  145

  )

  146

  )

  147

  copy test.xml %sshxmlpath% >nul

  148

  del /q test.xml

  149

  150

  goto :menu

  配置文件

  #此文件为配置文件, 请按下面格式更改。

  ########################软体###################

  #配置软体更新服务器的ip 地址

  updatewyip=127.0.0.1

  #配置软体下载试用软件的目录

  wypath=package

  #配置软体上传软件的目录

  wyupath=uppackage

  #配置软体发布软件的版本号

  wyversion=v1.0

  ########################体软####################

  #配置体软更新服务器的ip 地址

  updatewgip=127.0.0.1

  #配置体软上传软件的目录

  wgupath=uppackage

  #配置体软下载试用软件的目录

  wgpath=package

  #配置体软发布软件的版本号

  wgversion=v1.0

  ########################ssh#####################

  #配置ssh代理程序配置文件SSHProxyClient.xml的路径

  sshclientxml=.SSHProxyClient.xml

上一页  [1] [2] 


Tag:电脑常识电脑常识大全电脑教程 - 电脑常识