开发者

How to create a bat file for create one folder in my machine?

开发者 https://www.devze.com 2023-04-03 08:50 出处:网络
I want to create one bat file for create one folder in my machine. I created like thi开发者_如何学Pythons but its not woking.

I want to create one bat file for create one folder in my machine. I created like thi开发者_如何学Pythons but its not woking.


    @echo off
    "mkdir D:/PHP_Projects/myproject/Release/testfolder";

Any body can help me

Thanks


Just remove quotes and semicolon, and use backslash, not slash as path separator:

@echo off
mkdir D:\PHP_Projects\testprojects\Release\testfolder


Windows uses backslash as path separator. Also, you don't need the quotes and semicolon.

mkdir D:/PHP_Projects/myproject/Release/testfolder


You can just use md like this:

md D:\PHP_Projects\myproject\Release\testfolder

0

精彩评论

暂无评论...
验证码 换一张
取 消