Auto-execute command after going to a folder with the CD command
- by Patrick
Is it possible to auto-execute a command in a folder if you move to it via the cd command?
Of course I can define my own command (e.g. CHD.BAT) doing something like this:
@echo off
cd %1
if exist init.bat (
init.bat
) else (
color 0F
title Command Prompt
)
But I wonder if something like this would be possible using the standard CD command.