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

    Get desktop folders in windows application


    I want to get the desktop folders irrespective of file path. I hope each computer have the different user name.. Hence how to get the desktop folder names.

    Below is example.

  • #749845
    You can use the Enviorement variable to get the file path as below.

    string strFilePath = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);

    Thanks & Regards
    Anil Kumar Pandey
    Microsoft MVP, DNS MVM

  • #749847

    I gave you some reference links you should take a look

    Name : Dotnet Developer-2015
    Email Id :

    'Not by might nor by power, but by my Spirit,' says the LORD Almighty.

  • #749875
    Please check out the below link to view the code to retrieve all the files in a particular folder.

    Miss. Jain
    Microsoft Certified Technology Specialist in .Net

  • #749984
    [Response removed by Admin. Read forum policies.]

  • Sign In to post your comments