gpt4 book ai didi

vb.net - 使用 URI 格式打开文件

转载 作者:行者123 更新时间:2023-12-04 10:48:05 24 4
gpt4 key购买 nike

这个问题在这里已经有了答案:





Exception: "URI formats are not supported"

(4 个回答)


去年关闭。




这段代码

FileOpen(1, "file:///C:/Users/MyName/Desktop/Test%20%C3%A4%C3%B6%C3%BC%20Test.txt", OpenMode.Input)

throw
System.ArgumentException: 'URI formats are not supported.'

如何使用 URI 格式打开文件?
在上面的代码中更改文件名不是一个选项,它是由
AppDomain.CurrentDomain.SetupInformation.ActivationArguments.ActivationData

最佳答案

你可以使用这个:

Dim UriS As Uri("The Uri")
FileOpen(1,UriS.LocalPath,OpenMode.Input)

关于vb.net - 使用 URI 格式打开文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59609555/

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