Skip to content

Instantly share code, notes, and snippets.

@hook-s3c
Created August 31, 2018 12:41
Show Gist options
  • Select an option

  • Save hook-s3c/8aadeb98587df63c8db3daa799a2633f to your computer and use it in GitHub Desktop.

Select an option

Save hook-s3c/8aadeb98587df63c8db3daa799a2633f to your computer and use it in GitHub Desktop.
run cmd interactively
# thanks to - https://twitter.com/mwulftange/status/1034689855010353152
If you're not allowed to run cmd.exe interactively but `cmd /c …` works, this `cmd /c` based REPL may be helpful:
cmd /c for /l %i in (0,0,1) do cmd /c "set /p C=^> & cmd /c %C%"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment