Jump to content

Run Applications


Recommended Posts

Thanks snowmaker for ur reply but am still had the problem

Am new in the autoit and am use it just to automata the installation of some software so i need you to give me the code as example

And for the tutorial-WinZip am already know the to do it

I just need what i should do to:

Search for file in specific path if found it run version 1

If not run version 2

Link to comment
Share on other sites

Hi,

$file = "c:\pathtocheck\filetocheck.txt"
If FileExist ($file) Then
    ;run version 1
    Run (.....)
    ;RunWait ()
    ;RunAs (), RunAsWait ()
    ;ShellExecute (....)
Else
    ;run version 2
    Run (.....)
    ;ShellExecute (....)
EndIf

If you need version information of file, see helpfile FileGetVersion ().

;-))

Stefan

Edited by 99ojo
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...