c# - How create directory on my local machine -



c# - How create directory on my local machine -

i love inquire ,what wrong th next code ,because i've been trying create folder on local machine not work according expectactions. gives me error saying :

access path 'c:\inetpub\wwwroot//printlabels/' denied

code:

directory.createdirectory(apppath + "//printlabels/");

if using windows vista or above, first close visual studio, right-click icon , select run administrator option. when execute code, should stop giving access denied exception.

c#

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -