How to autorun a code within my pendrive from a notepad considering a variable?

I frecuently use my pendrive in different machines and I often get a virus which sets all my files as shortcuts. I always have to run this code * attrib -h -r -s /s /d (LABEL): . * and it’s pretty annoying.

Today I set an Icon on my pendrive using a notepad file and I wanted to know how to do the same with this code. The problem is the label is set accordint to the computer, and how could the label be written as a variable.

Source: virus

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.