Sign in to follow this  
Followers 0
engineer719

Creats multiple Notepad windows

3 posts in this topic

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



You could put a Sleep in there for a bit, then follow up with a ProcessClose on notepad.exe.

Share this post


Link to post
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0