Sign in to follow this  
Followers 0
brandonm

include file when script runs

2 posts in this topic

First, I hope this makes sence to someone. I would like to make a script that every time it is run, will check for a file-which is actualy an uncompiled autoit script, and will take its contents and run them as a script.

Like I said, a wierd question, but any suggestions or ideas are apriciated.

Thanks,

brandonm

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

First, I hope this makes sence to someone. I would like to make a script that every time it is run, will check for a file-which is actualy an uncompiled autoit script, and will take its contents and run them as a script.

Like I said, a wierd question, but any suggestions or ideas are apriciated.

Thanks,

brandonm

<{POST_SNAPBACK}>

lookup:

FileExists

RunWait --- autoit3.exe au3 filename

or

If FileExists("C:\Temp\MessageWatcher.au3") Then

Run(@ComSpec & " /c" & "C:\Temp\MessageWatcher.au3","", @SW_HIDE)

Else

;;;;; error stuff here

EndIf

Edited by herewasplato

[size="1"][font="Arial"].[u].[/u][/font][/size]

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