[Solved] How to create folder on server pc in C# [duplicate]


As explained in MSDN: Directory.CreateDirectory:

You can create a directory on a remote computer, on a share that you have write access to. UNC paths are supported;

Keyword here being “UNC paths”, which take the following form:

\\server-name\share-name\[subdirectory-names\]

So:

Directory.CreateDirectory(@"\\server-name\share-name\NewFolder1");

0

solved How to create folder on server pc in C# [duplicate]