You must Sign In to post a response.
  • Category: ASP.NET

    Create Folder and Files in url


    I am making a console application and having requirement of upload files to virtual directory. there is already virtual directory created and I want to add directory and files to that folder.

    That directory is not part of application, but other hosted application.

    Kindly do needful.
  • #769720
    as per the comment posted above, understood that you want to create/add folders and files into other virtual directory which was hosted with other application but not into current application.

    So, first you have to get the physical path of virtual directory by keeping that path in web.config file if not possible we have to get the path programmatically like Environment.CurrentDirectory, or get the application execution Application.StartupPath and specify the required path to construct correct path.
    Now, create files and folder what ever you want and save into relevant path.

    B.Ramana Reddy

  • Sign In to post your comments