[BOOTDATA] Update AHKAppTests.cmd to check all drives for the AHK-Tests. CORE-12597...
authorMark Jansen <mark.jansen@reactos.org>
Thu, 22 Dec 2016 20:51:38 +0000 (20:51 +0000)
committerMark Jansen <mark.jansen@reactos.org>
Thu, 22 Dec 2016 20:51:38 +0000 (20:51 +0000)
svn path=/trunk/; revision=73477

reactos/boot/bootdata/bootcdregtest/AHKAppTests.cmd

index 1743ab7..0b34c7a 100644 (file)
@@ -1,11 +1,14 @@
 @ECHO OFF\r
 \r
 @ECHO OFF\r
 \r
-if not exist "D:\AHK-Tests" (\r
+set DRIVE=\r
+for %%X in (A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) do (if exist %%X:\AHK-Tests set DRIVE=%%X)\r
+\r
+if not defined DRIVE (\r
     dbgprint "AHK Application testing suite not present, skipping."\r
     exit /b 0\r
 )\r
 \r
     dbgprint "AHK Application testing suite not present, skipping."\r
     exit /b 0\r
 )\r
 \r
-xcopy /Y /H /E D:\AHK-Tests\*.* C:\ReactOS\bin\r
+xcopy /Y /H /E %DRIVE%:\AHK-Tests\*.* %SystemRoot%\bin\r
 REM Download Amine's rosautotest from svn\r
 REM Download Amine's rosautotest from svn\r
-dwnl http://svn.reactos.org/amine/rosautotest.exe C:\ReactOS\system32\rosautotest.exe\r
+dwnl http://svn.reactos.org/amine/rosautotest.exe %SystemRoot%\system32\rosautotest.exe\r
 dbgprint "....AHK Application testing suite added."\r
 dbgprint "....AHK Application testing suite added."\r