Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
folder printing - new user question
#2
Macro Macro2019
Code:
Copy      Help
;Prints all doc and rtf files in My Documents folder.
;The same as if you select the files in Windows Explorer, right click and select Print.

ARRAY(str) a; int i
GetFilesInFolder a "$documents$" ".+\.(doc|rtf)" 0x10000
for i 0 a.len
,run F"{a[i]}" "" "print"
,;;or
,;run "winword.exe" F"/q /n /mFilePrintDefault /mFileExit ''{a[i]}''"


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)