Use cd
with no arguments if you’re using the shell directly, or %cd%
if you want to use it in a batch file (it behaves like an environment variable).
More Related Contents:
- Single line with multiple commands using Windows batch file
- How do I run two commands in one line in Windows CMD?
- Batch command date and time in file name
- Stop and Start a service via batch or cmd file?
- Create an empty file on the commandline in windows (like the linux touch command)
- How do I minimize the command prompt from my bat file
- Why doesn’t my stderr redirection end after command finishes? And how do I fix it?
- How do I get current date/time on the Windows command line in a suitable format for usage in a file/folder name?
- What is the reason for “X is not recognized as an internal or external command, operable program or batch file”?
- Symbol equivalent to NEQ, LSS, GTR, etc. in Windows batch files
- Windows batch files: .bat vs .cmd?
- How to delete files/subfolders in a specific directory at the command prompt in Windows
- How do I escape ampersands in batch files?
- Batch script: how to check for admin rights
- Setting a system environment variable from a Windows batch file?
- Windows XP or later Windows: How can I run a batch file in the background with no window displayed?
- How to correct variable overwriting misbehavior when parsing output?
- FORFILES date -after- (date calc in cmd file)
- What is the proper way to test if a parameter is empty in a batch file?
- How do I shutdown, restart, or log off Windows via a bat file?
- How do I create a shortcut via command-line in Windows?
- Why does findstr not handle case properly (in some circumstances)?
- Batch script with for loop and pipe
- How to pass environment variables as parameters by reference to another batch file?
- Rename all files in a directory with a Windows batch script
- Execute multiple batch files concurrently and monitor if their process is completed
- Batch file encoding
- How can I source variables from a .bat file into a PowerShell script?
- How to expand a CMD shell variable twice (recursively)
- Split %date% in a batch file regardless of Regional Settings