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!

files on remote computer?
jgillin
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.
DNAGCAT
Hi ahmedilyas,
You may need to allow read access for the Anonymous user as well.
Cheers,
Anthony Wong [MSFT]
MichaelDeArmas
havoc27
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)
inblosam
Oh, that's SmartPhone 2003 I'm not sure it supports accessing network drives like PPC does.
justadam
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$");
jaypatrick
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
Tom_Miller
the path is correct :-)
DevboyX
:-) 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
Thierry123
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
Andrew Robinson
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" />
MikeGrozny
It might be security or network issue. I would suggest trying from file explorer to see if it works at all.
Espasojevic
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!
Jfun
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