Skip to content
This repository has been archived by the owner on Apr 21, 2022. It is now read-only.
/ extra-cd Public archive

Change to directories with shortcut names in Windows Console.

License

Notifications You must be signed in to change notification settings

cmdf/extra-cd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Change directory with shortcuts in Windows Console.

  1. Download console script.
  2. Copy to C:\Program_Files\Scripts.
  3. Add C:\Program_Files\Scripts to PATH environment variable.
> ecd [-|[-|+|=]<path>]

:: [] -> optional argument
:: <> -> argument value
:: change to DOSBox directory
> ecd "C:\Program Files (x86)\DOSBox-0.74"

:: change to up one directory
> ecd ..

:: stay at current directory (list contents)
> ecd .

:: change to previous directory
> ecd -

:: add current directory as shortcut
> ecd +dosbox

:: change to root directory
> ecd C:\

:: change to DOSBox directory using shortcut
> ecd =dosbox

:: remove DOSBox shortcut
> ecd -dosbox

:: add relative path shortcut
> ecd +up3 ../../..

:: go up 3 directories
> ecd =up3

:: remove relative path shortcut
> ecd -up3



cmdf