diff --git a/docs/autogen/win32_cubedoc2xhtml.ps1 b/docs/autogen/win32_cubedoc2xhtml.ps1
new file mode 100644
index 00000000..4316d6cd
--- /dev/null
+++ b/docs/autogen/win32_cubedoc2xhtml.ps1
@@ -0,0 +1,8 @@
+$files = dir ..\* -include *.html
+
+foreach($f in $files)
+{
+ $in = $f.FullName
+ $out = [system.io.path]::ChangeExtension($f.FullName, "html")
+ msxsl.exe -o "$out" -v "$in" ..\transformations\cubedoc2xhtml.xslt
+}
\ No newline at end of file
diff --git a/docs/autogen/win32_cuberef2cubescript.bat b/docs/autogen/win32_cuberef2cubescript.bat
new file mode 100644
index 00000000..a1a2b908
--- /dev/null
+++ b/docs/autogen/win32_cuberef2cubescript.bat
@@ -0,0 +1,9 @@
+@echo off
+rem windows only.
+rem automatically transforms the reference to a cubescript.
+rem requires MSXSL, available at
+rem http://www.microsoft.com/downloads/details.aspx?familyid=2fb55371-c94e-4373-b0e9-db4816552e41&displaylang=en
+@echo on
+
+msxsl.exe -o ..\..\config\docs.cfg -v ..\reference.html ..\transformations\cuberef2cubescript.xslt
+pause
\ No newline at end of file
diff --git a/docs/autogen/win32_cuberef2xhtml.bat b/docs/autogen/win32_cuberef2xhtml.bat
new file mode 100644
index 00000000..6926881e
--- /dev/null
+++ b/docs/autogen/win32_cuberef2xhtml.bat
@@ -0,0 +1,2 @@
+msxsl.exe -o ..\out.html -v ..\reference.html ..\transformations\cuberef2xhtml.xslt
+pause
\ No newline at end of file