News:

Tekforums.net - The improved home of Tekforums! :D

Main Menu

Batch file woes

Started by Shakey, March 23, 2006, 12:45:17 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Shakey

Lo guys,

Im trying to write a batch file, and among other things it needs to create directories using a list of names stroed in a text file. Unfortunately the md command doesnt like using redirection operators, and I cant find another way of reading the file to get the foldernames  :(

Anyone here know anything about batch files and can help?

Ta muchly

brummie


Shakey

Nah, already seen that.

Have managed to solve it using much cunningness and trial and error  8)
Its just a matter of combining every dos command you can think of in the right order a number of times...

DeltaZero

FOR /F "usebackq" %i IN (file-name.txt) DO MD "%i"


Shakey

Yeh, ended up with something like that.
Unfortunately once I got that working everything else broke  :cry: