1

Is there any way to execute, get or create any local file by the user specific path? My intension is to create a folder in the user specific local path... something like Y:\newFolder if the user clicks a button in the View ASP.NET MVC. Sorry that I don't have any code sample but I really dont have any idea. Thanks and Greetings!

H. Senkaya
  • 743
  • 5
  • 27

1 Answers1

3

In a web application there is not actually any user, other than the IIS and the POOL that runs your site.

Now, you application can have users, that you allowed them to logged in, and then where you going to create their files and folders is up to you, and you only.

you can use this

HttpRuntime.AppDomainAppPath

to get your current application path, and from there you can add any folder base on your users.

Community
  • 1
  • 1
Aristos
  • 66,005
  • 16
  • 114
  • 150