engineer719 Posted July 28, 2011 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")
Tripredacus Posted July 28, 2011 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
DarkestHour Posted July 28, 2011 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.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now