'pwd' command on windows command prompt(cmd)

On windows command prompt, the command to print current directory  is :cd

Mapping 'pwd' command to 'cd':
Create a pwd.bat file on C:\Windows\System32 directory that have cd inside:

Contents of pwd.bat file :

  1. @echo off
  2. echo %cd%

This should create a pwd.bat at system32 directory. Now running pwd command should print current directory.

No comments:

Post a Comment