From 15ae3b17c57e78f0eb9237d9418bb8c6aad0801b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=80=E5=A7=8B=E5=86=99=E4=BB=A3=E7=A0=81?= <7985556+fzgandw@user.noreply.gitee.com> Date: Wed, 16 Sep 2020 18:10:11 +0800 Subject: [PATCH] =?UTF-8?q?update=20pyminer2.bat.=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E4=BA=86=20windows=20=E4=B8=8B=E7=9A=84=E6=89=93=E5=BC=80?= =?UTF-8?q?=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyminer2.bat | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pyminer2.bat b/pyminer2.bat index 9f5a4e82..ea320ae1 100644 --- a/pyminer2.bat +++ b/pyminer2.bat @@ -1,7 +1,9 @@ @echo off rem 两个变量拼接,等号前后一定不要有空格 -rem pymminer_road:pyminer.bat 文件路径,默认 pyminer.bat 和 app.py 同一个路径 -set pyminer_road=%~dp0 -set app=app2.py -set pyminer_path=%pyminer_road%%app% -python %pyminer_path% +rem ROAD:pyminer.bat 文件路径,默认 pyminer.bat 和 app2.py 同一个路径 +set ROAD=%~dp0 +set DISK=%ROAD:~0,2% +%DISK% +cd %ROAD% +python app2.py +pause \ No newline at end of file -- Gitee