Skip to content

Instantly share code, notes, and snippets.

@PintsizedSix40
Last active October 31, 2019 06:55
Show Gist options
  • Save PintsizedSix40/66c1c21ddc6c8512d07b3dab74c49007 to your computer and use it in GitHub Desktop.
Save PintsizedSix40/66c1c21ddc6c8512d07b3dab74c49007 to your computer and use it in GitHub Desktop.
A one-line command to give command-prompt that can be ran on computers with command-prompt blocked as long as "cmd /c" or "cmd /k" still functions. This command can be placed in shortcut files to be ran.
C:\Windows\System32\cmd.exe /v /k "@echo off&&FOR /L %N IN (1,0,10) DO ((FOR /F "tokens=* USEBACKQ" %F IN (`cd`) DO (set /p b=%F^>&&!b!)))"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment