Get the App
SLTechnology News&Howtos  ›  Development  › 

How to run the cmd command directly into the specified directory

Shulou Source: shulou.com Published: 2022-06-03 07:08:53 11月15日 Update

This article is about how to run commands that go directly to the specified directory by running cmd. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

Create a new .bat batch file with the following commands:

The code is as follows:

@ ECHO OFF

Cmd / k cd / d c:\ data

Then run the batch file cmd to go to the specified "c:\ data" directory.

Thank you for reading! On "how to run cmd directly into the specified directory command" this article is shared here, I hope the above content can be of some help to you, so that you can learn more knowledge, if you think the article is good, you can share it out for more people to see it!

Tags: Commands directories runs files contents more articles good practical code articles look knowledge access reference help related Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker MariaDB Huawei OPPO Reno Redmi