I read a previous question... found here: Windows equivalent to UNIX pwd
Unfortunately, when I tried to do the same thing as what the person mentioned below (except for ls.cmd and @echo %dir%), it only displayed the words "ECHO is on." in the command line. I did the same exact thing for pwd and it worked, but how come this doesn't work? Thanks.
Open notepad as administrator and write:
@echo %cd%
Save it in c:\windows\system32\ with the name "pwd.cmd" (be careful not to > save pwd.cmd.txt)
Then you have the pwd command.
EDIT: Maybe I should rephrase. I'm basically trying to create my own Windows command of the UNIX command "ls," which lists directories (the same as Windows' "dir" command). This is strictly for learning purposes as I could just as easily type dir as ls, but I wanted to see why this doesn't work.