diff --git a/mozilla/layout/html/tests/printer/rtest.bat b/mozilla/layout/html/tests/printer/rtest.bat
new file mode 100755
index 00000000000..c5de6fd6a66
--- /dev/null
+++ b/mozilla/layout/html/tests/printer/rtest.bat
@@ -0,0 +1,9 @@
+@echo off
+
+cd table
+call rtest.bat %1
+
+cd images
+call rtest.bat %1
+cd ..
+