0

i want to create a batch file

@echo off
set /p name="Type folder name(s):
md %name%
cd p:\%name%

all lines work, but i cannot change the directiory to cd p:\%name% when i run the script thank you.

4

1 回答 1

1

您需要cd /d更改到另一个驱动器上的目录:

cd /d p:\%name%
于 2012-08-04T11:47:09.493 回答