How to Open All the Word Files in a Folder with AutoHotkey

Word := ComObjCreate("Word.Application") ; Create a MS Word object
Word.Visible := True

; Loop through all the files ending with .docx in the Desktop folder
Loop, Files, C:\Users\User\Desktop\*.docx ; Path to Desktop folder specifying all .docx files
{
	if ( RegExMatch(A_LoopFileName,"^~\$") ) {
		continue ; Skip file names beginning with "~$" that Word uses in the background 
	}
	Word.Documents.Open(A_LoopFileLongPath) ; Open the file
}