How do I create a directory using MS-DOS?
I know how to create a smaller range of directories, i.e., md 100 101 102. However, I need to create multiple folders with a range from 100 - 1000. I don't want to have to type out that whole range. Is it possible?
Comments
FOR /L %%D IN (100,1,1000) DO MD %%D
You may directly type this command in the command-line (no Batch file), but in this case change the double percent-signs by single ones.
No. You could write a qbasic program but it might be quicker to type it all out by cutting and pasting lines in a batch file then editing it. Or create the text in excel and paste it into a file and use that as a batch file - here goes.
md 100
md 101
md 102
md 103
md 104
md 105
md 106
md 107
md 108
md 109
md 110
md 111
md 112
md 113
md 114
md 115
md 116
md 117
md 118
md 119
md 120
md 121
md 122
md 123
md 124
md 125
md 126
md 127
md 128
md 129
md 130
md 131
md 132
md 133
md 134
md 135
md 136
md 137
md 138
md 139
md 140
md 141
md 142
md 143
md 144
md 145
md 146
md 147
md 148
md 149
md 150
md 151
md 152
md 153
md 154
md 155
md 156
md 157
md 158
md 159
md 160
md 161
md 162
md 163
md 164
md 165
md 166
md 167
md 168
md 169
md 170
md 171
md 172
md 173
md 174
md 175
md 176
md 177
md 178
md 179
md 180
md 181
md 182
md 183
md 184
md 185
md 186
md 187
md 188
md 189
md 190
md 191
md 192
md 193
md 194
md 195
md 196
md 197
md 198
md 199
md 200
md 201
md 202
md 203
md 204
md 205
md 206
md 207
md 208
md 209
md 210
md 211
md 212
md 213
md 214
md 215
md 216
md 217
md 218
md 219
md 220
md 221
md 222
md 223
md 224
md 225
md 226
md 227
md 228
md 229
md 230
md 231
md 232
md 233
md 234
md 235
md 236
md 237
md 238
md 239
md 240
md 241
md 242
md 243
md 244
md 245
md 246
md 247
md 248
md 249
md 250
md 251
md 252
md 253
md 254
md 255
md 256
md 257
md 258
md 259
md 260
md 261
md 262
md 263
md 264
md 265
md 266
md 267
md 268
md 269
md 270
md 271
md 272
md 273
md 274
md 275
md 276
md 277
md 278
md 279
md 280
md 281
md 282
md 283
md 284
md 285
md 286
md 287
md 288
md 289
md 290
md 291
md 292
md 293
md 294
md 295
md 296
md 297
md 298
md 299
md 300
md 301
md 302
md 303
md 304
md 305
md 306
md 307
md 308
md 309
md 310
md 311
md 312
md 313
md 314
md 315
md 316
md 317
md 318
md 319
md 320
md 321
md 322
md 323
md 324
md 325
md 326
md 327
md 328
md 329
md 330
md 331
md 332
md 333
md 334
md 335
md 336
md 337
md 338
md 339
md 340
md 341
md 342
md 343
md 344
md 345
md 346
md 347
md 348
md 349
md 350
md 351
md 352
md 353
md 354
md 355
md 356
md 357
md 358
md 359
md 360
md 361
md 362
md 363
md 364
md 365
md 366
md 367
md 368
md 369
md 370
md 371
md 372
md 373
md 374
md 375
md 376
md 377
md 378
md 379
md 380
md 381
md 382
md 383
md 384
md 385
md 386
md 387
md 388
md 389
md 390
md 391
md 392
md 393
md 394
md 395
md 396
md 397
md 398
md 399
md 400
md 401
md 402
md 403
md 404
md 405
md 406
md 407
md 408
md 409
md 410
md 411
md 412
md 413
md 414
md 415
md 416
md 417
md 418
md 419
md 420
md 421
md 422
md 423
md 424
md 425
md 426
md 427
md 428
md 429
md 430
md 431
md 432
md 433
md 434
md 435
md 436
md 437
md 438
md 439
md 440
md 441
md 442
md 443
md 444
md 445
md 446
md 447
md 448
md 449
md 450
md 451
md 452
md 453
md 454
md 455
md 456
md 457
md 458
md 459
md 460
md 461
md 462
md 463
md 464
md 465
md 466
md 467
md 468
md 469
md 470
md 471
md 472
md 473
md 474
md 475
md 476
md 477
md 478
md 479
md 480
md 481
md 482
md 483
md 484
md 485
md 486
md 487
md 488
md 489
md 490
md 491
md 492
md 493
md 494
md 495
md 496
md 497
md 498
md 499
md 500
md 501
md 502
md 503
md 504
md 505
md 506
md 507
md 508
md 509
md 510
md 511
md 512
md 513
md 514
md 515
oops too long!
Hi, you need to do batch progamming on DOC. this link is a good start
http://www.ericphelps.com/batch/