chiark / gitweb /
Add the lib elevate stuff (even though it's only used by the old
[jarrg-ian.git] / lib / elevate.cmd
diff --git a/lib/elevate.cmd b/lib/elevate.cmd
new file mode 100644 (file)
index 0000000..0b7a3ae
--- /dev/null
@@ -0,0 +1,33 @@
+:: //***************************************************************************\r
+:: // ***** Script Header *****\r
+:: // =======================================================\r
+:: // Elevation PowerToys for Windows Vista v1.1 (04/29/2008)\r
+:: // =======================================================\r
+:: //\r
+:: // File:      Elevate.cmd\r
+:: //\r
+:: // Additional files required:  Elevate.vbs\r
+:: //\r
+:: // Purpose:   To provide a command line method of launching applications that\r
+:: //            prompt for elevation (Run as Administrator) on Windows Vista.\r
+:: //\r
+:: // Usage:     elevate.cmd application <application arguments>\r
+:: //\r
+:: // Version:   1.0.0\r
+:: // Date :     01/02/2007\r
+:: //\r
+:: // History:\r
+:: // 1.0.0   01/02/2007  Created initial version.\r
+:: //\r
+:: // ***** End Header *****\r
+:: //***************************************************************************\r
+\r
+@setlocal\r
+@echo off\r
+\r
+:: Pass raw command line agruments and first argument to Elevate.vbs\r
+:: through environment variables.\r
+set ELEVATE_CMDLINE=%*\r
+set ELEVATE_APP=%1\r
+\r
+start wscript //nologo "%~dpn0.vbs" %*\r