Sign in to follow this  
Followers 0
Falcs

If File exists

11 posts in this topic

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

Share this post


Link to post
Share on other sites



Ugh,

Good, you've checked the helpfile.

Bad, what have you tried?!?!?!?!

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

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 by FreeFry

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Might wanna try looking alittle harder next time. :)

Share this post


Link to post
Share on other sites

well the search function on it is pretty shit

Share this post


Link to post
Share on other sites

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. ;)

Share this post


Link to post
Share on other sites

Noted, thanks!

Just ease up on the sarcasim, its huting my head. lol

Share this post


Link to post
Share on other sites

lol, sorry. :) I'm just kinda funky right now. ^____^

Share this post


Link to post
Share on other sites

I doubt he's being sarcastic one bit.

Share this post


Link to post
Share on other sites

#11 ·  Posted (edited)

I doubt he's being sarcastic one bit.

A little bit. ;p

I, "accidently" drank a lil whine, and yep, here we are. :)

Edit:

lol, that'd be wine, not whine. ;)

Edited by FreeFry

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