filesystemobject.createfolder error codes

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • RdS

    #1

    filesystemobject.createfolder error codes

    Hello,

    I have been searching for what createfolder can return or does return.
    Where on MSDN can I find what a MS method returns? I have searched for
    filesystemobjec t.createfolder errors, error codes, error, etc. and cannot
    find what it returns. The syntax document for the method on MSDN doesn't
    list what it returns.

    I need to know what the method can return so I can handle exceptions.

    Thanks.


  • Kevin Yu [MSFT]

    #2
    RE: filesystemobjec t.createfolder error codes

    Hi Rds,

    The CreateFolder method will return an object if the folder is created
    successfully. If it fails, the script will throw an error code instead of
    return an error code.

    There are no documents describing what error code will be thrown. However,
    we can imagine that there are only a few reasons that this might occur. For
    example, no permission, duplicate name or disk full are all common reasons.
    You can just use an On Error Goto to handle the exception.

    Kevin Yu
    Microsoft Online Community Support

    =============== =============== =============== =====
    Get notification to my posts through email? Please refer to
    http://msdn.microsoft.com/subscripti...ult.aspx#notif
    ications.
    Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
    where an initial response from the community or a Microsoft Support
    Engineer within 1 business day is acceptable. Please note that each follow
    up response may take approximately 2 business days as the support
    professional working with you may need further investigation to reach the
    most efficient resolution. The offering is not appropriate for situations
    that require urgent, real-time or phone-based interactions or complex
    project analysis and dump analysis issues. Issues of this nature are best
    handled working with a dedicated Microsoft Support Engineer by contacting
    Microsoft Customer Support Services (CSS) at
    http://msdn.microsoft.com/subscripti...t/default.aspx.
    =============== =============== =============== =====

    (This posting is provided "AS IS", with no warranties, and confers no
    rights.)

    Comment

    Working...