Assign a read write permissions to C drive in C#

  • Thread starter Thread starter Gopi247
  • Start date Start date
G

Gopi247

Guest
I will be getting a string from database as \\PC0X15EZ190312\PCMFeed\.

and also I am getting a string StuderGroup\\PCM\\9000\\Inbox

Here PC0X15EZ190312 is my machine name or IP Address. if PCMFeed folder doesnt exists in the cdrive , i need to create a folder and subfolders.


my questions


Is there any way to create a folder just under c DRive. example c:\pcmFeed.

Is it possible to give to create a folder named PCMFeed just under C Drive and assign permissions to Service Account under which my service is running.



is there any way i can provide permissions to the user, where the credentials are stored in the web. config.


Please note that every things is happening through Web api call.


Note : I am able to create a folders and subfolders if any directory alreadly exists.

Continue reading...
 
Back
Top