<HTML>
<HEAD>
<link type="text/css" href="../css/main_styles.css" rel="stylesheet"></HEAD>
<BODY>
<TITLE>mqc_isFileInFolder</TITLE>
<H1>mqc_isFileInFolder</H1><H4>Synopsis</H4><PRE><FONT COLOR = blue>Defun: mqc_isFileInFolder(
       String, $file_name,
       String, $folder_name,
       Boolean, $search_sub? )
@{...} Integer;

</FONT></PRE><PRE STYLE=\"text-align : left;\" CLASS=\"Code\">
DesignLogic=no
FunctionBuilder=no

<B>Description:</B>
Determine if the specified file is in the given folder or its sub-folders.

<B>Input:</B>
    (String) file_name    -  The file to search.
    (String) folder_name  -  Searching path name
    (Boolean)search_sub?  -  Searching the sub-folder or not.
                             False  -  Only search the folder without sub-folders.
                             True   -  Search the folder and its sub-folders.

<B>Input Arguments:</B>
file_name
folder_name
search_sub?

<B>Returns:</B>
-1 - The folder does not exist.
0  - The file is not in folder
1  - The file is in folder(or sub-folders)
>1 - The system error
Note:
    i.e. mqc_isFileInFolder( "test_file.txt", "D:\temp", false )
         mqc_isFileInFolder( "test_file.txt", "D:\temp", true )
         The function is replaced by mqc_isFileInFolder2

<B>See Also:</B>
mqc_isFileInFolder2
</PRE></FONT></PRE>
<p class=EndLine>&nbsp;</p>
<p class=blank>&nbsp;</p>
</BODY>
</HTML>
