chiark / gitweb /
Get rid of the installer nonsense.
[jarrg-owen.git] / lib / elevate.cmd
1 :: //***************************************************************************\r
2 :: // ***** Script Header *****\r
3 :: // =======================================================\r
4 :: // Elevation PowerToys for Windows Vista v1.1 (04/29/2008)\r
5 :: // =======================================================\r
6 :: //\r
7 :: // File:      Elevate.cmd\r
8 :: //\r
9 :: // Additional files required:  Elevate.vbs\r
10 :: //\r
11 :: // Purpose:   To provide a command line method of launching applications that\r
12 :: //            prompt for elevation (Run as Administrator) on Windows Vista.\r
13 :: //\r
14 :: // Usage:     elevate.cmd application <application arguments>\r
15 :: //\r
16 :: // Version:   1.0.0\r
17 :: // Date :     01/02/2007\r
18 :: //\r
19 :: // History:\r
20 :: // 1.0.0   01/02/2007  Created initial version.\r
21 :: //\r
22 :: // ***** End Header *****\r
23 :: //***************************************************************************\r
24 \r
25 @setlocal\r
26 @echo off\r
27 \r
28 :: Pass raw command line agruments and first argument to Elevate.vbs\r
29 :: through environment variables.\r
30 set ELEVATE_CMDLINE=%*\r
31 set ELEVATE_APP=%1\r
32 \r
33 start wscript //nologo "%~dpn0.vbs" %*\r