Created
January 31, 2022 14:14
-
-
Save lymieux/fe1d9588ea2e6a22ad9cc035b6706bc8 to your computer and use it in GitHub Desktop.
Command Prompt w/ Unix style and Compat Layer set to Invoker
This file contains 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 | |
cd "%userprofile%" | |
set __COMPAT_LAYER=RunAsInvoker | |
:run | |
TITLE %cd% - Command Prompt: Invoker | |
set dirf=%cd% | |
call set dirf=%%dirf:%userprofile%=~%% | |
set /p task="%username%@%computername% %dirf%: " | |
call %task% | |
set task= | |
goto :run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment