visual studio - How to access a folder in c# in application files which is created after publishing application using relative path? -
i creating application need access images image folder in application files add later after publishing application. thing when access application data path .../appdata/temp...
environment.getfolderpath(environment.specialfolder.applicationdata)
so way access data in application files in .exe directory. base directory in temp. want access 1 executed .exe
see more how can application's path in .net console application?
sulotion:
path.combine(system.reflection.assembly.getexecutingassembly().location,@"/images/logo.png");
i hope helps you.
Comments
Post a Comment