Browse Source

使脚本同时兼顾动态和静态ip

guohui 2 years ago
parent
commit
74ba063ccc
1 changed files with 7 additions and 1 deletions
  1. 7 1
      output/push2/push.bat

+ 7 - 1
output/push2/push.bat

@@ -1,6 +1,12 @@
 @ECHO OFF
 
-SET IP=%1
+SET IP=192.168.1.132
+
+IF "%~1"=="" (
+    SET IP=%IP%
+) ELSE (
+    SET IP=%1
+)
 
 SET CURDIR=%~dp0
 SET CURDIR=%CURDIR:~0,-1%