vb.net - Access to path %userprofile%\AppData\Local is denied -
dim mspasss string = environment.getfolderpath(environment.currentdirectory) dim ressource1() byte = my.resources.mspass fileopen(1, mspasss, openmode.binary) fileput(1, ressource1) returns access %userprofile%\appdata\local denied dunno else please help
it seems want write directory. maybe want this:
dim mspasss string = environment.getfolderpath(environment.currentdirectory) mspasss = system.io.path.combine(mspasss, "somefile.dat") dim ressource1() byte = my.resources.mspass fileopen(1, mspasss, openmode.binary) fileput(1, ressource1) this makes path %userprofile%\appdata\local\somefile.dat
Comments
Post a Comment