[Batch] directories maken met namen uit een txt

Pagina: 1
Acties:

  • CaineTanathos
  • Registratie: Februari 2001
  • Laatst online: 07-07 22:00
ok dit is mijn hoofdbestand maakdir.bat:

@echo off
:start
copy p.txt + data.txt data.bat > NUL
rem call data.bat
rem type data.bat | find /v "process.bat" > data.txt
rem copy data.txt NUL | find "0" > NUL
if errorlevel 1 goto start
:done

het p.txt bestand bevat:
process.bat

het process.bat bestand bestaat uit :
echo Processing %1

en data.txt op dit moment:
test1
test2
test3



Als hij die eerste copy doet maakt hij dus een nieuw bestand data.bat

nu staat daar in:
process.bat
test1
test2
test3

maar het zou moeten zijn :

process.bat test1
test2
test3



Weet er iemand wat ik fout doe :?

//Update
Ik heb het op een andere manier gedaan
dus je kan hier een slotje op doen

Perilous to us all are the devices of an art deeper than we possess ourselves.