Skip to content

Instantly share code, notes, and snippets.

@lymieux
Created January 31, 2022 14:14
Show Gist options
  • Save lymieux/fe1d9588ea2e6a22ad9cc035b6706bc8 to your computer and use it in GitHub Desktop.
Save lymieux/fe1d9588ea2e6a22ad9cc035b6706bc8 to your computer and use it in GitHub Desktop.
Command Prompt w/ Unix style and Compat Layer set to Invoker
@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