1
Dim mspasss As String = Environment.GetFolderPath(Environment.CurrentDirectory)
    Dim Ressource1() As Byte = My.Resources.mspass
    FileOpen(1, mspasss, OpenMode.Binary)
    FilePut(1, Ressource1)

返回对 %userprofile%\AppData\Local 的访问被拒绝我不知道还能做什么请帮忙

4

1 回答 1

1

您似乎想写入目录。也许你想要这样的东西:

Dim mspasss As String = Environment.GetFolderPath(Environment.CurrentDirectory)
mspasss = System.Io.Path.Combine(mspasss, "someFile.dat")
Dim Ressource1() As Byte = My.Resources.mspass
FileOpen(1, mspasss, OpenMode.Binary)
FilePut(1, Ressource1)

这使得 %userprofile%\AppData\Local\someFile.dat 的路径

于 2013-10-07T15:37:59.337 回答