China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-13 07:42
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » Question: how to md a folder in a batch file!! View 648 Replies 4
Original Poster Posted 2004-02-04 00:00 ·  中国 江西 南昌 电信
初级用户
Credits 193
Posts 25
Joined 2004-02-03 00:00
22-year member
UID 16634
Gender Male
Status Offline
Question: how to md a folder in a batch file!!
Floor 2 Posted 2004-02-05 00:00 ·  中国 辽宁 沈阳 联通
铂金会员
★★★★
痴迷DOS者
Credits 5,798
Posts 1,924
Joined 2003-06-20 00:00
23-year member
UID 5583
Gender Male
From 金獅電腦軟體工作室
Status Offline
@echo off
if not direxist c:\DEMO md c:\demo
REM This batch file works under DRDOS.
熟能生巧,巧能生精,一艺不精,终生无成,精亦求精,始有所成,臻于完美,永无止境!
金狮電腦軟體工作室愿竭诚为您服务!
QQ群:8393170(定期清理不发言者)
个人网站:http://www.520269.cn
电子邮件:doujiehui@vip.qq.com
微信公众号: doujiehui
Floor 3 Posted 2004-02-05 00:00 ·  中国 山西 运城 联通
元老会员
★★★★
Batchinger
Credits 4,432
Posts 1,512
Joined 2002-10-18 00:00
23-year member
UID 19
Gender Male
Status Offline
Re Kinglion:

Where is direxist used? I haven't seen it before.

I generally use IF NOT EXIST c:\DEMO\NUL MD C:\DEMO
※ Batchinger 致 Bat Fans:请访问 批处理编程的异类 ,欢迎交流与共享批处理编程心得!
Floor 4 Posted 2004-02-05 00:00 ·  中国 江西 南昌 电信
初级用户
Credits 193
Posts 25
Joined 2004-02-03 00:00
22-year member
UID 16634
Gender Male
Status Offline
willsort's is OK!!!
Thanks!!! I found another way to write it
@c:
@Md DEMO
Floor 5 Posted 2004-02-05 00:00 ·  中国 江西 南昌 电信
初级用户
Credits 193
Posts 25
Joined 2004-02-03 00:00
22-year member
UID 16634
Gender Male
Status Offline
willsort's is OK!!!
Thanks!!! I found another way to write it
@c:
@Md DEMO
Forum Jump: