Sfoglia il codice sorgente

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

guohui 2 anni fa
parent
commit
74ba063ccc
1 ha cambiato i file con 7 aggiunte e 1 eliminazioni
  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%