gpt4 book ai didi

Java : How to access UNC location

转载 作者:行者123 更新时间:2023-11-30 07:56:40 27 4
gpt4 key购买 nike

同题;如何访问 ShareFolder 中的 UNC 位置?

URL uri = new URL("file:\\\\x.x.1.10\\myUNC");
File file = new File(uri);

URL uri = new URL("file://x.x.1.10/myUNC");
File file = new File(uri);

也不起作用。

最佳答案

只是:

File f = new File("\\\\x.x.1.10\\myUNC");

关于Java : How to access UNC location,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41926148/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com