I need to open an external program and within that program I need to open a file, copy all the text in it, paste it into a new Notepad document, save the Notepad document with the file's original name and then loop this. How would I go about doing this?
;~ Read in a file ->FileFindFirstFile ( "filename" )
;~ Check if file exists ->FileExists ( "path" )
;~ Open file ->FileOpen ( "filename" [, mode ] )
;~ Get file name -> FileRead ( "filehandle/filename" [, count] )
;~ Get text/data from file
;~ open new notepad document
;~ notepad receives data
;~ notepad saves new document as original file name
; repeat ->FileFindNextFile ( search )
This is what I attempted to plan out, but I just started using AutoIt yesterday so I'm not really sure if I'm doing it right.
Thanks for any help you might be able to lend me