stoneheart Posted March 23, 2010 Share Posted March 23, 2010 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 Link to comment Share on other sites More sharing options...
somdcomputerguy Posted March 23, 2010 Share Posted March 23, 2010 (edited) If...Then...ElseFunction FileExistsFunction RunTutorial - WinZip Edited March 23, 2010 by snowmaker - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
stoneheart Posted March 24, 2010 Author Share Posted March 24, 2010 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 More sharing options...
99ojo Posted March 24, 2010 Share Posted March 24, 2010 (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 March 24, 2010 by 99ojo Link to comment Share on other sites More sharing options...
stoneheart Posted March 24, 2010 Author Share Posted March 24, 2010 Thank You Stefan thats really what i want i test and its working you the Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now