Jump to content

include file when script runs


Recommended Posts

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

Link to comment
Share on other sites

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]

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...