Accessing a shared folder over a network in adobe air

拜拜、爱过 提交于 2019-12-11 03:13:42

问题


I'm trying to write to a shared folder on a windows network in AIR using the File class. I don't understand how to format the path to the shared folder. I get one of who errors with everything I've tried: "The specified folder does not exist" and "there is a parameter missing". The UNC path to access this folder from my computer is like this:

\\localdev01\platefiles

Here are the different path formats I've tried to access this folder:

\\localdev01\platefiles

/localdev01/platefiles

file://localdev01/platefiles (i get error #2 with this one)

file:///localdev01/platefiles

Does anyone have any guidance or suggestions?


回答1:


for a shared directory like

\\localdev01\platefiles 

use

file:///\\localdev01\platefiles



回答2:


ex : for a shared directory from a pc with "pc-name"

file:////pc-name/folder/file.jpg


来源:https://stackoverflow.com/questions/4182523/accessing-a-shared-folder-over-a-network-in-adobe-air

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!