files on remote computer?

Hi.
Wondering if there is a way of retrieving files/directories etc... using the .NET classes I would like to retrieve this information on my remote computer (local computer which has the mobile device connected to it)

I can connect using tcpclient but when i try to get a list of files/directories using:



string[] theFiles = Directory.GetFiles("\\ComputerName\drive$");

 


I get an IOException. However the IOException does not give me any error messages, no innermessage or message! It's just "IOException"

Is there a way to do what I want

running .NET Framework 1.1 (WM2003SE)

Thanks!


Answer this question

files on remote computer?

  • CaptainSmudge

    Thanks... I tried this and it still didn't work :(

    the path is correct :-)

  • Kothai Ramesh kumar

    Well it works from within Windows of course, that works fine but its only on the remote device that appears to have the issue. I have also added "everyone" as the group for that folder and given it read permission as well as list... even full permissions

  • Shirvo

    It might be security or network issue. I would suggest trying from file explorer to see if it works at all.



  • guy87

    what do you mean "sometimes it can/can't" is it for sometime we can do that by active sync or is it for sometime we can do that by WIFI

    I've try with Active sync but it didn't work, for WIFI I don't know.

    are we have to use networkstream to read the file



  • GlennZarb

    sometimes it can, sometimes it can't - depends on various reasons but generally to access it you would need to access it via the computer name followed by the share path:

    \\\\computerName\\sharedPath\\filename.ext



  • Angry Coder

    I believe that should work with correct path. Note you need to properly escape path string (or use verbatim string). Perhaps, that would work:

    string[] theFiles = Directory.GetFiles("\\\\ComputerName\\drive$");



  • AndyL

    :-) A LOT of new and interesting things I am discovering of the smartphones!

    I wonder if its a limitation of the ROM provided by the Service provider or the OS... im sure its not the OS

     



  • thukralz

    hi..

    I'm using PPC2003 CF2. is there any possibilty that I can open a file from the remote computer using ActiveSync is it just about the right path

    picturebox.image = "\\\\dekstop\\img.jpg"

    and ActiveSync can't do, what about Wifi connection



  • Falklian

    yup, you are correct about the wifi support in WM5 however it depends on the hardware if it has the wifi system but C600 apperently does not but they say they may change their mind nearer the time of the launch of the device.

    Thanks!



  • pmeinl

    Oh, that's SmartPhone 2003 I'm not sure it supports accessing network drives like PPC does.



  • Steve - B3

    Hi ahmedilyas,

    You may need to allow read access for the Anonymous user as well.

    Cheers,
    Anthony Wong [MSFT]


  • Bipin George Mathew

    Thanks for the replies!

    unfortunatly the file explorer on the mobile device does not have a "browse to" option (perhaps like PPC) since my device is an SPV smartphone (SMT5600/C500 UK)

     



  • ga2006

    Actually, file explorer on PPC would ask for credential if there’s some access control. If you could never reach the share from PPC's file explorer and get credential prompt, most likely that's network issues.< xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />



  • MicMit

    I'm not 100% certain on that and I could not find any information to prove it.
    But considering there are no LAN drivers in SP, that would be the first thing to go in my opinion. WM 5.0 might fix that add support for it because it has Wi-Fi support.


  • files on remote computer?