thank you for examples
@mikeyww works fine with text-files
@teadrinker small typo > file3 := "file2.mp3"
works fine with mp3 ( just vlc.exe show me the wrong total time and see only the first picture ( pictures included in mp3-files ) )
another example to copy text-files to one text-file
Code: Select all
#warn
setworkingdir,%a_scriptdir%
mf:=a_desktop . "\TEST" ;- here files *.txt und *.ahk
SplitPath,MF, name, dir, ext, name_no_ext, drive
F1:=a_desktop . "\" . name_no_ext . ".txt"
ifnotexist,%f1%
fileappend,,%f1%,utf-8
setworkingdir,%MF%
runwait, %comspec% /c type *.txt >>%F1%,,hide
runwait, %comspec% /c type *.ahk >>%F1%,,hide
try
run,%f1%
return