qname = wscript.arguments.item(0)
set FSO=createObject ( "Scripting.FileSystemObject")
set qfile = FSO.openTextfile(qname,1)
set zfile = FSO.openTextfile(qname&".erg",2,true)
do until qfile.AtEndOfStream
zeile=qfile.readLine
if left(zeile,8)="[Round """ then
p1=instr(8,zeile,".")
zahl1=mid(zeile,9,p1-9)
if zahl1 mod 2 = 1 then
zeile="[Round """ & (zahl1+1)/2 & ".1""]"
else
zeile="[Round """ & zahl1/2 & ".2""]"
end if
end if
zfile.writeline(zeile)
loop
zfile.close
qfile.closeset DAT=eingabe1.txt
cscript /Nologo umsetzung.vbs %DAT%
notepad %DAT%.erg

[/quote]*freu* Powered by mwForum 2.29.3 © 1999-2014 Markus Wichitill