ich hab ein Script, was eine Datei in eine txt umwandeln soll, die erste Zeile löschen und wieder zum alten Format zurückkehren soll
Code:
#include <file.au3>
#RequireAdmin
$l = _FileCountLines(@DesktopDir & "\dateien.txt")
MsgBox(0,"",$l)
for $i = 1 to $l
$l2 = FileReadLine(@DesktopDir & "\dateien.txt",$i)
$l3 = StringReplace($l2,"csv","txt")
MsGBox(0,"t",$l3)
$ab = StringSplit($l2,"\")
$ub = Ubound($ab)
$ub2 = $ub - "1"
$ub3 = StringReplace($ab[$ub2],".csv","")
Run(@ComSpec&'\c ren ' & $l2 & ' ' & $ub3 )
_FileWriteToLine("$l3","1","",1)
Next
Kann mir bitte irgendjemand helfen






