Author Topic: Batch file woes  (Read 1642 times)

  • Offline Shakey

  • Posts: 495
  • Sr. Member
Batch file woes
on: March 23, 2006, 12:45:17 PM
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

Re:Batch file woes
Reply #1 on: March 23, 2006, 13:27:56 PM
See if anything in this helps

http://www.ss64.com/nt/

  • Offline Shakey

  • Posts: 495
  • Sr. Member
Re:Batch file woes
Reply #2 on: March 23, 2006, 18:32:53 PM
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...

Re:Batch file woes
Reply #3 on: April 05, 2006, 19:00:37 PM
FOR /F "usebackq" %i IN (file-name.txt) DO MD "%i"


  • Offline Shakey

  • Posts: 495
  • Sr. Member
Re:Batch file woes
Reply #4 on: April 06, 2006, 15:48:13 PM
Yeh, ended up with something like that.
Unfortunately once I got that working everything else broke  :cry:

0 Members and 1 Guest are viewing this topic.