Skip to content

Instantly share code, notes, and snippets.

@azyu
Last active December 17, 2020 05:40
Show Gist options
  • Save azyu/6d119e3b4147c4ac4f2688ef9051991d to your computer and use it in GitHub Desktop.
Save azyu/6d119e3b4147c4ac4f2688ef9051991d to your computer and use it in GitHub Desktop.
.bashrc equivalent for windows cmd shell
@echo off
echo Load alias command...
doskey cd~=cd /D %USERPROFILE%
doskey scoop_update=scoop update *$Tscoop cache rm *$Tscoop cleanup *
@azyu
Copy link
Author

azyu commented Dec 17, 2020

AutoRun

  • cmd.exe /k %userprofile%\startup.cmd

or

  • HKEY_CURRENT_USER\Software\Microsoft\Command Processor\AutoRun

@azyu
Copy link
Author

azyu commented Dec 17, 2020

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment