How to get the Printer Shortcuts path in C#

1 Answer

0 votes
using System;

namespace ConsoleApplication_C_Sharp
{
    class Program
    {
        static void Main(string[] args)
        {
            string s = Environment.GetFolderPath(Environment.SpecialFolder.PrinterShortcuts);

            Console.WriteLine(s);
        }
    }
}

/*
run:
  
C:\Users\USER\AppData\Roaming\Microsoft\Windows\Printer Shortcuts

*/

 



answered Jan 14, 2017 by avibootz
...