Jump to content

Small help file change.

Recommended Posts

Function Reference


If FileExists("D:\") Then
    MsgBox(4096, "D: exists.")
    MsgBox(4096,"", "D: does not exist.")


If FileExists("D:\") Then
  MsgBox(4096,"","D: exists.")
  MsgBox(4096,"", "D: does not exist.")

..edit found by bobheart

or use this page;

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  <title>Function FileExists</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <link href="../css/default.css" rel="stylesheet" type="text/css">

<h1>Function Reference</h1>
<font size="+1">FileExists</font>
<hr size="2">
<p>Checks if a file or directory exists.<br></p>

<table cellSpacing="5" width="100%" bgColor="#FFFFAA">
  <td height="48" class="code">FileExists ( "path" )<br></td>

<table border="1" width="100%" cellspacing="0" cellpadding="3" bordercolor="#C0C0C0">
    <td width="15%">Path</td>
    <td width="85%">The directory or file to check.</td>

<p><b>Return Value</b></p>
<table width="100%">
    <td width="10%">Success:</td>
    <td width="90%">Returns 1.</td>
    <td>Returns 0 if path/file does not exist.</td>

FileExists returns 0 if you specify a floppy drive which does not contain a disk.<br>

<a href="FileGetAttrib.htm">FileGetAttrib</a>, <a href="DriveStatus.htm">DriveStatus</a>

<p class="code">
If FileExists("D:\") Then<br>
&nbsp;&nbsp;&nbsp; MsgBox(4096,"", "D: exists.")<br>
&nbsp;&nbsp;&nbsp; MsgBox(4096,"", "D: does not exist.")<br>

Edited by scriptkitty

AutoIt3, the MACGYVER Pocket Knife for computers.

Link to comment
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

  • Recently Browsing   0 members

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