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

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

java.util.scanner - How to read and add only numbers to array from a text file -

iphone - Three second countdown in cocos2d -