Hi Kunal,
I am Dave, I will help you with this.
In general Windows does not trust Autorun.inf files, they are disabled in Windows these days because it was a major source of spreading Tojans from PC to PC, using USB flash drives.
Are you using .\ to navigate to a folder on the drive, the only hope you ay have is replacing the .\ with the actual folder name you have the icon stored in, that may stop the Autorun file being flagged, and it may not