CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2009
    Posts
    1

    Question How to access local folders when code is runned from a network share

    Hi, I'm running an application from a network share, this application then try to verify if the path "C:\\temp" exist and return true or false.

    If the code is runned localy, there's no problem. If it's runned from a network share, I get the result false, even if the folder exist localy.

    The code is C# on framework 2.0

    Thank you

  2. #2
    Join Date
    Dec 2005
    Location
    Waterloo ON
    Posts
    545

    Re: How to access local folders when code is runned from a network share

    As my understanding, there is not difference once you can run the app. the thing is which computer you are running the app, if there is "C:\temp" on the computer, if your user id has access right to the directory. Just do a test:

    the app is definitely running on your computer becuase you use your computer to develop it. Now copy the app to a shared drive and then run it on your computer. It should work.
    The difficulty is that you have no idea how difficult it is.

    .Net 3.5/VS 2008

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

Featured