Falcs Posted February 28, 2008 Posted February 28, 2008 hey guys, havin troubles with IF statements.I want the script to check if "c:\program files\example\eg.exe" exists and then ill do a "then/else"YES i have tried the bloody help file
JustinReno Posted February 28, 2008 Posted February 28, 2008 Ugh, Good, you've checked the helpfile. Bad, what have you tried?!?!?!?!
FreeFry Posted February 28, 2008 Posted February 28, 2008 (edited) Falcs said: YES i have tried the bloody help file I wouldn't say you "try" the helpfile, instead, try reading it. You answered your own question in your thread title: If FileExists("file") Then ; .. do whatever else ; .. do something else EndIf Edit: Whops, typo. Edited February 28, 2008 by FreeFry
Falcs Posted February 28, 2008 Author Posted February 28, 2008 FreeFry said: I wouldn't say you "try" the helpfile, instead, try reading it. You answered your own question in your thread title: If FileExist("file") Then ; .. do whatever else ; .. do something else EndIf thanks mate, i tried fileexists and it worked, didnt see that in the help file. thanks again
FreeFry Posted February 28, 2008 Posted February 28, 2008 Might wanna try looking alittle harder next time.
Falcs Posted February 28, 2008 Author Posted February 28, 2008 well the search function on it is pretty shit
FreeFry Posted February 28, 2008 Posted February 28, 2008 Not if you know what you want. If you want to do a file related action, you search for file, and woala, all File functions pops up. If you're confident, you can even try to browse the Function Reference, it actually has it's own section dedicated to File, Directory, and Disk Management.
Falcs Posted February 28, 2008 Author Posted February 28, 2008 Noted, thanks! Just ease up on the sarcasim, its huting my head. lol
FreeFry Posted February 28, 2008 Posted February 28, 2008 lol, sorry. I'm just kinda funky right now. ^____^
FreeFry Posted February 28, 2008 Posted February 28, 2008 (edited) JustinReno said: I doubt he's being sarcastic one bit.A little bit. ;pI, "accidently" drank a lil whine, and yep, here we are. Edit:lol, that'd be wine, not whine. Edited February 28, 2008 by FreeFry
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