Results 1 to 6 of 6

Thread: [2008] IO on Mapped Drive

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2008
    Location
    California
    Posts
    151

    [2008] IO on Mapped Drive

    Hi

    I have a windows application which using "Directory.Exists" and "Directory.CreateDirectory", It works perfect on local drive but if I use mapped drive it does not work.

    FYI:
    mapped drive is Novel Netware not windows.
    I have already tried security options with no luck.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2008] IO on Mapped Drive

    Things don't just not work. Please tell us exactly what happens. Is an exception thrown? If so then you're provided with an error message as a diagnostic tool. Given that you're asking us to diagnose the issue, logic would dictate that you provide us with that error message, or any other information regarding the issue. maybe someone has had that same issue and maybe they'll see this thread. In the meantime, the rest of us may be able to help if we have all the information.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Feb 2008
    Location
    California
    Posts
    151

    Re: [2008] IO on Mapped Drive

    For "Directory.Exists" it returns FALSE even that directory does EXISTS.

    Example

    If Not Directory.Exists("T:\Test") Then' this returns false but directory exists.

    directory.createdirectory("T:\Test")
    'create directory will fail ofcourse as its not able to see mapped path
    End If

    Hope this helps.

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Feb 2008
    Location
    California
    Posts
    151

    Re: [2008] IO on Mapped Drive

    Another quick thing, it works perfect if mapped drive is of windows OS and AS 400. I am trying to make it work on Mapped drive of on Novell Network.

  5. #5
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2008] IO on Mapped Drive

    One point to note is this, from the MSDN documentation for the Directory.Exists method:
    The Exists method does not perform network authentication. If you query an existing network share without being pre-authenticated, the Exists method will return false.
    Try opening the mapped folder in Windows Explorer and see if Directory.Exists returns True then.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Feb 2008
    Location
    California
    Posts
    151

    Re: [2008] IO on Mapped Drive

    Sorry, what do you mean by
    "Try opening the mapped folder in Windows Explorer and see if Directory.Exists returns True then."

    In windows explorer, I see that folder by opening drive letter "T:\",

    Well, we have asked network admin to add a username/password to novell network domain. Hopefully this will solve problem. This is the same username/password which we use to login on windows.

    I will update this thread accordingly.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width