Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @ECHO OFF
- COLOR 06
- GOTO DOSKEYCOMMANDLIST
- ...skip this...
- :comment
- $G Redirects output. Use either of these special characters to send output to a device or a file instead of to the screen. This character is equivalent to the redirection symbol for output (>).
- $G$G Appends output to the end of a file. Use either of these double characters to append output to an existing file instead of replacing the data in the file. These double characters are equivalent to the append redirection symbol for output (>>).
- $L Redirects input. Use either of these special characters to read input from a device or a file instead of from the keyboard. This character is equivalent to the redirection symbol for input (<).
- $B Sends macro output to a command. These special characters are equivalent to using the pipe (**
- $T Separates commands. Use either of these special characters to separate commands when you create macros or type commands on the doskey command line. These special characters are equivalent to using the ampersand (&) on a command line.
- $$ Specifies the dollar-sign character ($).
- $1 through $9 Represent any command-line information you want to specify when you run the macro. The special characters $1 through $9 are batch parameters that enable you to use different data on the command line each time you run the macro. The $1 character in a doskey command is similar to the %1 character in a batch program.
- $* Represents all the command-line information that you want to specify when you type the macro name. The special character $\* is a replaceable parameter that is similar to the batch parameters $1 through $9, with one important difference: everything you type on the command line after the macro name is substituted for the $\* in the macro.
- :DOSKEYCOMMANDLIST
- ::::::: PROMPT ::::::
- SET P1=PROMPT $G
- SET P2=PROMPT $P$G
- ::::::: CECHO :::::::
- SET "CG=CECHO {0A}"
- SET "CR=CECHO {0C}"
- SET "CT=CECHO {03}"
- SET "CY=CECHO {0E}"
- SET "CN={\n}"
- ::::::: START :::::::
- SET "TKCMDXIT=$T TASKKILL /F /IM "cmd.exe" $T EXIT"
- :: DIRECTORY COMMANDS ::
- DOSKEY CAT=TYPE $*
- DOSKEY CP.=COPY $*
- DOSKEY D.=DIR $*
- DOSKEY DE.=DIR /B /O:E $B FINDSTR /R /I "$1"
- DOSKEY DN.=DIR /B /O:N $B FINDSTR /R /I "$1"
- DOSKEY DX.=DIR /X $*
- DOSKEY DK=DOSKEY /?
- DOSKEY DKM=DOSKEY /MACROS
- DOSKEY LL=CLS $T DIR
- DOSKEY MV=MOVE $*
- DOSKEY RM=DEL $*
- :: CHANGE DIRECTORY ::
- DOSKEY CD.=CD %%$1%%
- DOSKEY .=CD ..\$*
- DOSKEY ..=CD ..\..\$*
- DOSKEY ...=CD ..\..\..\$*
- DOSKEY ....=CD ..\..\..\..\$*
- DOSKEY CDPD=CD C:\ProgramData
- DOSKEY CDPF1=CD C:\Program Files
- DOSKEY CDPF2=CD C:\Program Files (X86)
- DOSKEY CDW=CD C:\Windows
- DOSKEY CDE=CD %OneDrive%\Downloads
- DOSKEY CDF=CD %OneDrive%\Documents
- DOSKEY CDD=CD %OneDrive%\Desktop
- :: SYSTEM32 AND SYSTEM64 ::
- SET S32=C:\Windows\System32
- SET S64=C:\Windows\SysWOW64
- :: COMMAND COM ::
- DOSKEY IPC=IPCONFIG
- DOSKEY IPCA=IPCONFIG /ALL
- DOSKEY IPCF=IPCONFIG /FLUSHDNS
- DOSKEY IPCR=IPCONFIG /REGISTERDNS
- DOSKEY IPCRS=IPCONFIG /RESET
- DOSKEY PS=TASKLIST $*
- DOSKEY SFC=SFC /SCANNOW
- :: DISM ::
- DOSKEY DISMCAB=DISM /ONLINE /ADD-PACKAGE /PACKAGEPATH:"$1"
- :: SHUTDOWN ::
- DOSKEY SD=%OneDrive%\Desktop\Shutdown.lnk
- DOSKEY SDA=SHUTDOWN /A
- DOSKEY SDR=SHUTDOWN /R /T 1 $T TIMEOUT 1 >NUL $T TASKKILL /IM wlrmdr.exe
- DOSKEY SDG=SHUTDOWN /G /T 1 $T TIMEOUT 1 >NUL $T TASKKILL /IM wlrmdr.exe
- DOSKEY SDFW=SHUTDOWN /R /FW /T 1 $T TIMEOUT 1 >NUL $T TASKKILL /IM wlrmdr.exe
- :: START PROGRAMS ::
- DOSKEY E.=explorer $* $T %TKCMDXIT%
- DOSKEY E..=explorer %%$1%%
- DOSKEY NP.=C:\Program Files\Notepad++\notepad++.exe $*
- DOSKEY P.=ECHO.%!!.%
- DOSKEY ST7Z=START /MAX 7ZFM /B %TKCMDXIT%
- DOSKEY AHK="%PROGRAMFILES%\AHK\AutoHotkey.exe" %TKCMDXIT%
- DOSKEY STBRU=BULKRENAMEUTILITY %TKCMDXIT%
- DOSKEY STCC=CCLEANER64 %TKCMDXIT%
- DOSKEY STE=ECMD64 %TKCMDXIT%
- DOSKEY STFD=FUZEDRIVE %TKCMDXIT%
- DOSKEY STFF=FIREFOX %TKCMDXIT%
- DOSKEY STG=GIMP-2.10 %TKCMDXIT%
- DOSKEY STIM=Magick $1
- DOSKEY STLC=LCORE %TKCMDXIT%
- DOSKEY STNP=NOTEPAD++ %TKCMDXIT%
- DOSKEY STOSSL=OPENSSL %TKCMDXIT%
- DOSKEY STOT=OTCONVERTIT %TKCMDXIT%
- DOSKEY STP=PUTTY %TKCMDXIT%
- DOSKEY STR=RUFUS_3.5 %TKCMDXIT%
- DOSKEY STUT=UTORRENT %TKCMDXIT%
- DOSKEY STVLC=VLC %TKCMDXIT%
- DOSKEY STWT=WINAEROTWEAKER %TKCMDXIT%
- :: WINDOWS APPS ::
- DOSKEY STCP=CONTROL
- ::DOSKEY STCP=CONTROL %TKCMDXIT%
- DOSKEY STDEV=DEVMGMT %TKCMDXIT%
- DOSKEY STDISK=DISKMGMT %TKCMDXIT%
- DOSKEY STENV=RUNDLL32.EXE sysdm.cpl,EditEnvironmentVariables %TKCMDXIT%
- DOSKEY STEV=EVENTVWR %TKCMDXIT%
- DOSKEY STFW=WF %TKCMDXIT%
- DOSKEY STGPE=GPEDIT %TKCMDXIT%
- DOSKEY STI=explorer Shell:::{87D66A43-7B11-4A28-9811-C86EE395ACF7} %TKCMDXIT%
- DOSKEY STNC=NCPA.CPL %TKCMDXIT%
- DOSKEY STNPLW=NETPLWIZ %TKCMDXIT%
- DOSKEY STREG=REGEDIT %TKCMDXIT%
- DOSKEY STRM=PERFMON /RES %TKCMDXIT%
- DOSKEY STS=SERVICES.MSC %TKCMDXIT%
- DOSKEY STTS=TASKSCHD.MSC %TKCMDXIT%
Advertisement
Add Comment
Please, Sign In to add comment