[問題] 如何讀取PDA路徑

作者: Bisger (鼻屎哥)   2014-10-21 14:19:40
目前想讓使用者在程式(web)上點選下載、上傳
便可以將檔案下載到PDA裡面的指定位置,或從PDA指定位置上傳檔案
不需要使用者親自去選取
目前以嘗試版上之前提供的方式
foreach (string dir in Directory.GetDirectories("\\"))
{
if (((new DirectoryInfo(dir)).Attributes & FileAttributes.Temporary) > 0)
{
// dir 就是你的sd目錄了..
}
}
↑ 它會自動幫我去抓C:\底下 (不知道為什麼他會自己加上C碟)
以及 Environment.SpecialFolder 的方式
我的環境是 winxp VS2010
PDA與電腦連線後如下圖
http://i.imgur.com/MARjoie.png
PDA裡面的資料路徑如下圖
http://i.imgur.com/SRzQCcr.png
煩請大大們路過時能出手幫小弟解惑,感激不盡。
作者: Bisger (鼻屎哥)   2014-10-24 09:47:00
補上後來找到的資料 用 OpenNETCF 的RAPI 可以copyfile附上 教學 http://goo.gl/lYdsp4

Links booklink

Contact Us: admin [ a t ] ucptt.com