Advertisement
opexxx

sudo.cmd

Oct 10th, 2018
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2.  
  3. :: Pass execution context information through environment variables.
  4. set SUDO_CMDLINE=%*
  5. set SUDO_ARG1=%1
  6. set SUDO_ARG2=%2
  7. set SUDO_CD=%CD%
  8. set SUDO_DRIVE=%CD:~0,2%
  9.  
  10. :: %~dpn0 is refering to this files name and %* sends along the full commandline  
  11. cscript //nologo "%~dpn0.vbs" %*
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement