I'm having Lots of .pdf files in a specified folder (let it be E:\Sujith\Files\ and the files are named as pdfFile_01.pdf, pdfFile_02.pdf, pdfFile_03.pdf etc). Now i wanted to change the icon of specified file( pdfFile_01.pdf) from it default icon to specified icon( let it be E:\Sujith\Icons\pdf_new.Ico). How can i do this from command line or batch file


File type icons are applied per-filetype (not per-file). Only way you can set a different icon for a specific file is by writing an icon handler shell extension or by using a program that uses one.

  • But that are all points to C++. I'm using C#. Is there any possibility from the command line or using c# libraries? – sujith karivelil Aug 1 '16 at 7:04
  • If you're going to code yourself, then posting it in StackOverflow is a good idea. – w32sh Aug 1 '16 at 7:10
  • @un-lucky You can create a shortcut to that PDF file and change it all day long but good luck otherwise~ +1 +1 +1 ... o{\\\\\\\]::;;::;;::;;::;;::> – Pimp Juice IT Aug 1 '16 at 22:29
  • I followed this Link It don't do anything, – sujith karivelil Aug 2 '16 at 5:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.