Jump to content

Recommended Posts

Posted

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

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

  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

Posted

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

Posted (edited)

  JustinReno said:

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...