下面简单的介绍一个批量将doc文件存为同名txt的autohotkey代码,可以改造成其他类似用途。
FileList = ; Initialize to be blank.
Loop, g:\3\*.*
FileList = %FileList%%A_LoopFileName%`n
Sort, FileList, R ; The R option sorts in reverse order. See Sort for other options.
Loop, parse, FileList, `n
{
if A_LoopField = ; Ignore the blank item at the end of the list.
continue
Run g:\3\%A_LoopField%
WinWaitActive,,,0.5
Send, !fa{tab}{down}{down}{down}{enter}!s!fc
}