简体   繁体   中英

How do i create a directory on a local server - c#

System.IO.Directory.CreateDirectory(@"\\" + Properties.Settings.Default.Local_Server + "\\Documents\\Bluevels Payroll Software\\Users Pictures");

i try creating a folder on a local server using this code and it does seem to work, giving m an error "The network name cannot be found". in this instance the property setting saved is localhost and it doesn't work. Any help please?

So i figured it out, the code was correct the only thing wrong here was how i was sharing the folder. i didn't set the share name that why i was getting that error. thanks anyways. i Just had to do an Advance sharing option.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM