This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
:Initialisation | |
REM YOUR INITIALISATION CODE HERE | |
:Administrator_Permission | |
REM Complying with Administrator Permissions | |
:Check | |
REM Trying Running an Action Requiring Administrative Permissions, Then Store its Standard Error Output, OS-Dynamically |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
:Initialisation | |
title Lenovo Fn and Function Keys Indicators | |
:Administrator_Permission | |
REM Complying with Administrator Permissions | |
:Check | |
REM Trying Running an Action Requiring Administrative Permissions, Then Store its Standard Error Output, OS-Dynamically |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setlocal | |
for /f "delims=" %%I in ('powershell -noprofile "iex (${%~f0} | out-string)"') do ( | |
echo You chose %%~I | |
) | |
goto :EOF | |
: end Batch portion / begin PowerShell hybrid chimera #> | |
Add-Type -AssemblyName System.Windows.Forms |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setlocal | |
set "psCommand="(new-object -COM 'Shell.Application')^.BrowseForFolder(0,'Please choose a folder.',0,0).self.path"" | |
for /f "usebackq delims=" %%I in (`powershell %psCommand%`) do set "folder=%%I" | |
endlocal |
NewerOlder