看板 C_and_CPP 關於我們 聯絡資訊
開發平台(Platform): (Ex: Win10, Linux, ...) win7 編譯器(Ex: GCC, clang, VC++...)+目標環境(跟開發平台不同的話需列出) vc++ 使用_findfirst API在找尋本機資料夾下是沒問題的 但若是找尋網路空間(內網)的共用資料夾卻看不到 (在windows路徑欄位是可以看得到的) 有高手可以幫忙解惑嗎 OK的 strcpy( sdir, "C:\\123" ); strcpy( filter, "*.*" ); _chdir( sdir ); hFile = _findfirst(filter, &c_file); 不OK strcpy( sdir, "\\\\192.168.99.28" ); s _chdir( sdir ); hFile = _findfirst(filter, &c_file); -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 59.120.53.211 ※ 文章網址: https://www.ptt.cc/bbs/C_and_CPP/M.1483600429.A.0E6.html ※ 編輯: dimaya (59.120.53.211), 01/05/2017 15:31:44
freaky: 名稱不能是share本身,要用$share\* 01/10 03:30