Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows equivalent to UNIX pwd

Tags:

windows

cmd

pwd

How do I find the local path on windows in a command prompt?

like image 544
Joshua Avatar asked May 28 '09 16:05

Joshua


People also ask

How do I print a Windows pwd?

MS-DOS and Windows command line current directory To list the files in the current directory use the dir command, and if you want to change the current directory, use the cd command. You can use the chdir command by itself to print the current directory in MS-DOS and the Windows command line.

What is the pwd in computer?

The print-working-directory command is used to determine your location in the file system. When the computer executes this command, it will show the user the absolute pathname for their current directory.

What is the ls command in Windows?

Windows “dir” Command is “ls” Command Equivalent Windows MS-DOS and PowerShell command-line interface provide the dir command in order to list files and folders. By default without any option, the dir command lists files and folders.


1 Answers

This prints it in the console:

echo %cd% 

or paste this command in CMD, then you'll have pwd:

(echo @echo off echo echo ^%cd^%) > C:\WINDOWS\pwd.bat 
like image 124
Petar Kabashki Avatar answered Sep 28 '22 03:09

Petar Kabashki