windows - Autoit replace string in multiple text files -
windows - Autoit replace string in multiple text files -
i have code:
$szfile = "text.txt" $sztext = fileread($szfile,filegetsize($szfile)) $sztext = stringreplace($sztext, "before", "after") filedelete($szfile) filewrite($szfile,$sztext)
it works have loads of text files , configure script each time problem. 1 know how create every file in dir. have tried $szfile = "*.txt"
doesn't work. thanks.
filefindfirstfile supports wildcards. note function returns file handle used in fileopen call.
windows string file text autoit
Comments
Post a Comment