hx3 Posted November 9, 2008 Posted November 9, 2008 - How check path of a file while this file doesn't exist and return value of it. Example : if Run("notepa") Then MsgBox(0,"No success") EndIf - MsgBox doesn't work because run a file doesn't exist. - How check while users input invalid key, Thanks you.
BrettF Posted November 9, 2008 Posted November 9, 2008 Hello and welcome to the forums, I think you might be looking for FileExists? And in response to the question in your title, and a little explanation of your code... Run returns the PID of the spawned process, otherwise 0. We can look at 1 being true, and 0 being False, so basically what is happening If Run Not Equal 0, Then show messagebox. Cheers, Brett Oh and what do you mean by value? Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version!
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