2016-09-29 1 views
-1

Wenn Sie mehrere Skripte über cmd ausführen, werden sie nacheinander ausgeführt.2 Skripte gleichzeitig ausführen Monkeyrunner

Wie man sie gleichzeitig laufen lässt?

MONKEYRUNNER ABER

@echo off 
rem Copyright (C) 2010 The Android Open Source Project 
rem 
rem Licensed under the Apache License, Version 2.0 (the "License"); 
rem you may not use this file except in compliance with the License. 
rem You may obtain a copy of the License at 
rem 
rem  http://www.apache.org/licenses/LICENSE-2.0 
rem 
rem Unless required by applicable law or agreed to in writing, software 
rem distributed under the License is distributed on an "AS IS" BASIS, 
rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
rem See the License for the specific language governing permissions and 
rem limitations under the License. 

rem don't modify the caller's environment 
setlocal 

rem Set up prog to be the path of this script, including following symlinks, 
rem and set up progdir to be the fully-qualified pathname of its directory. 
set prog=%~f0 

rem Change current directory and drive to where the script is, to avoid 
rem issues with directories containing whitespaces. 
cd /d %~dp0 

rem Check we have a valid Java.exe in the path. 
set java_exe=call lib\find_java.bat 
if not defined java_exe goto :EOF 

set jarfile=monkeyrunner.jar 
set frameworkdir=. 
set libdir= 

if exist %frameworkdir%\%jarfile% goto JarFileOk 
    set frameworkdir=lib 

if exist %frameworkdir%\%jarfile% goto JarFileOk 
    set frameworkdir=..\framework 

:JarFileOk 

set jarpath=%frameworkdir%\%jarfile% 

if not defined ANDROID_SWT goto QueryArch 
    set swt_path=%ANDROID_SWT% 
    goto SwtDone 

:QueryArch 

    for /f "delims=" %%a in ('"%java_exe%" -jar %frameworkdir%\archquery.jar') do set swt_path=%frameworkdir%\%%a 

:SwtDone 

if exist "%swt_path%" goto SetPath 
    echo SWT folder '%swt_path%' does not exist. 
    echo Please set ANDROID_SWT to point to the folder containing swt.jar for your platform. 
    exit /B 

:SetPath 

call "%java_exe%" -Xmx512m "-Djava.ext.dirs=%frameworkdir%;%swt_path%" -Dcom.android.monkeyrunner.bindir=..\framework -jar %jarpath% %* 
+0

'set java_exe = rufen lib \ find_java.bat' setzt die Variable auf die Zeichenkette' nennen lib \ find_java.bat' - Ich gehe davon aus, das ist nicht das, was Sie wollen. Verwenden Sie ein 'for/f', um die Ausgabe eines Befehls oder einer Batchdatei zu erhalten. Um Ihre Frage zu beantworten: 'start /?' Ist was Sie brauchen. – Stephan

+0

mein Code: Start monkeyyrunner c: \ 9 \ 1.py starten monkeyrunner c: \ 9 \ 13.py, aber sie starten java .exe, die die Umdrehungen durchführt. nicht sofort fertig 2, ich brauche zur gleichen Zeit laufen –

Antwort

0

Wie ist das ein minimales Beispiel mit Müll gefüllt.

Start "" Program1 
Start "" Program2 
+0

mein Code: starten Monkeyrunner c: \ 9 \ 1.py starten Monkeyrunner c: \ 9 \ 13.py aber sie starten java .exe, die die Umdrehungen durchführt . schließt nicht sofort ab 2 –

+1

Sie müssen genau angeben, was passiert, wenn Sie Ihre Frage bearbeiten. Ich verstehe deine kurze Antwort nicht. –

Verwandte Themen