Sign in to follow this  
Followers 0
stoneheart

Run Applications

5 posts in this topic

I need some help to make automation software installation for application but there is tow version

I need the script to search for file in specific path if found it run version 1

If not run version 2

Thanks

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

Thank You Stefan thats really what i want i test and its working

:) you the :(

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