I'm new to Windows and I know how to do it in Unix systems. In Windows 10, suppose that I want, in my Windows Command Processor, that the command d
permanently does exactly the same as cd
then ls
, how would I do this ?
For instance, I'm in this Command Processor, and when I type d C:Users
, this is equivalent of doing cd C:Users
+ ls
and that goes then lists all my files and directories in this folder.
EDIT thanks to @montonero : You can replace the "Windows Command Processor" by "PowerShell" and my question still remains :D
doskey d=cd /d $*$Tdir