engineer719 0 Posted July 28, 2011 I have a batch file that runs the "atlanta.exe" (Compiled .au3 file) It created 33 windows since last night. ( I run it every hour in my batch script). This is not good..since it used up a ton of memory and almost crashed the server. And it also...sometimes hangs when overwriting the existing atlanta.txt file. Any ideas? Thank you in advance. Engineer719. Run("notepad.exe") WinWaitActive("Untitled - Notepad") Send("Atlanta,Yes,{F5}") WinClose("Untitled - Notepad") WinWaitActive("Notepad", "Do you want to save") Send("!Y") Send("AtlantaLog.txt") Send("!S") Send("!Y") Share this post Link to post Share on other sites
Tripredacus 35 Posted July 28, 2011 You could put a Sleep in there for a bit, then follow up with a ProcessClose on notepad.exe. Twitter | MSFN | VGCollect Share this post Link to post Share on other sites
DarkestHour 0 Posted July 28, 2011 It looks like your just creating a file to show that the server is up?You could do the same with FileWriteLine that way it is not even dependent on the servers Desktop being open and unlocked. Share this post Link to post Share on other sites