#cs ---------------------------------------------------------------------------- AutoIt Version: 3.2.12.1 Author: myName Script Function: Template AutoIt script. #ce ---------------------------------------------------------------------------- ; Script Start - Add your code below here if(not ($cmdline[0] == 1)) Then Exit endif $file = $cmdline[1]; $ext = stringright($file,4); if( not (StringLeft($ext,1) == ".")) Then $ext = "." & $ext endif $newfile = StringReplace($file,$ext,"") & "_deutsch" & $ext; $cont = FileRead($file) $cont = StringRegExpReplace($cont,"([0-9]*)\.([0-9]*)","$1,$2"); --> replace zahl.zahl => zahl,zahl $cont = StringRegExpReplace($cont,"([0-9]{2})\,([0-9]{2})\,([0-9]{4})","$1.$2.$3"); // -> get datum back FileWrite($newfile,$cont) $officedir = @ProgramFilesDir & "\Microsoft Office\"; $officesearch = $officedir & "Office*"; $search = FileFindFirstFile($officesearch); $found_file = FileFindNextFile($search) $officedir = $officedir & $found_file; $cmd = $officedir & "\Excel.exe " & $newfile run($cmd);