Next, you use the FileSystemObject object's GetFolder
method with the folder's absolute path as the
argument. You must specify a path that evaluates to an
existing folder. If you specify a path to a folder
that doesn't exist, you'll receive the error message
Path not found.

To avoid this error, you can use the FileSystemObject
object's FolderExists method to determine a folder's
presence before you call GetFolder. For example, the
following code checks for the existence of the folder
at the path C:\nodir and displays a warning message if
it doesn't exist:

If Not fso.FolderExists _ (|C:\nodir") Then MsgBox
|The folder doesn't" _ & |exist." End If

--- Andy and Kim Mills <[EMAIL PROTECTED]> wrote:

> Hello Guys:  I am trying to use the FSO object to
> create a folder, but everytime
> I do, I get a path not found error.  Why would I be
> getting this error when trying
> to create a folder?  If
> (objFSO.FolderExists(strSavePath)) Then
>    ' Do Nothing
> Else
>    Set objFolder = objFSO.CreateFolder(strSavePath)
>    Set objFolder = Nothing
> End If  Thanks Andy 
> 
> 
> [Non-text portions of this message have been
> removed]
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/17folB/TM
--------------------------------------------------------------------~-> 

---------------------------------------------------------------------    
 Home       : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
 Post       : [EMAIL PROTECTED]
 Subscribe  : [EMAIL PROTECTED]
 Unsubscribe: [EMAIL PROTECTED]
--------------------------------------------------------------------- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/active-server-pages/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to