X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=jarrg-ian.git;a=blobdiff_plain;f=lib%2Felevate.cmd;fp=lib%2Felevate.cmd;h=0b7a3ae5ecf25d891e38c2c0a1df909a5f0b9a09;hp=0000000000000000000000000000000000000000;hb=28fc5ed64298a61499fd985013654d9ac73293e5;hpb=3cff51a7f2bf5a5d9b78482f408da1b70037994c diff --git a/lib/elevate.cmd b/lib/elevate.cmd new file mode 100644 index 0000000..0b7a3ae --- /dev/null +++ b/lib/elevate.cmd @@ -0,0 +1,33 @@ +:: //*************************************************************************** +:: // ***** Script Header ***** +:: // ======================================================= +:: // Elevation PowerToys for Windows Vista v1.1 (04/29/2008) +:: // ======================================================= +:: // +:: // File: Elevate.cmd +:: // +:: // Additional files required: Elevate.vbs +:: // +:: // Purpose: To provide a command line method of launching applications that +:: // prompt for elevation (Run as Administrator) on Windows Vista. +:: // +:: // Usage: elevate.cmd application +:: // +:: // Version: 1.0.0 +:: // Date : 01/02/2007 +:: // +:: // History: +:: // 1.0.0 01/02/2007 Created initial version. +:: // +:: // ***** End Header ***** +:: //*************************************************************************** + +@setlocal +@echo off + +:: Pass raw command line agruments and first argument to Elevate.vbs +:: through environment variables. +set ELEVATE_CMDLINE=%* +set ELEVATE_APP=%1 + +start wscript //nologo "%~dpn0.vbs" %*