[BOOTDATA] AHKAppTests.cmd: Fix 'media' typo (#1502)
[reactos.git] / boot / bootdata / bootcdregtest / AHKAppTests.cmd
index d2fee0a..6c93dfe 100644 (file)
@@ -1,9 +1,15 @@
-@ECHO OFF\r
-\r
-if not exist "D:\AHK-Tests" (\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
-dbgprint "....AHK Application testing suite added."
\ No newline at end of file
+@ECHO OFF
+
+set DRIVE=
+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)
+
+if not defined DRIVE (
+    dbgprint "AHK Application testing suite not present, skipping."
+    dbgprint "Insert ReactOS boot medium and try again."
+    exit /b 0
+)
+
+xcopy /Y /H /E %DRIVE%:\AHK-Tests\*.* %SystemRoot%\bin
+REM Download Amine's rosautotest from svn
+dwnl http://svn.reactos.org/amine/rosautotest.exe %SystemRoot%\system32\rosautotest.exe
+dbgprint "....AHK Application testing suite added."