Jump to content

Autorun.inf (My problem runs deeper! Something is bugged...)


Recommended Posts

I'd like to reference the icon for my usb drive dynamically from the host computer. This way, the drive can have its custom icon, but each host computer would have its own version of this icon.

[autorun]
icon="%CustomData%\Icons\Drive Custom IPod Shuffle.ico"

Shortcuts of the drive use this icon path!

F:\%CustomData%\Icons\Drive Custom IPod Shuffle.ico

It puts the drive's root in front, unless the path starts with a letter. Ideas? How could I solve this?

Edited by Palii
Link to comment
Share on other sites


Arie:

Thanks for the fast reply. I created a new environment variable. It works fine for all of shortcuts and other icon references...I just tried with %systemroot% as well....same result.

[autorun]
icon="%systemroot%\Drive Custom IPod Shuffle.ico"

Now it desperately hangs on to this path:

F:\%systemroot%\Drive Custom IPod Shuffle.ico

More ideas? Is there perhaps a way to reference such environment variables, but without starting the path string with a % character?

Link to comment
Share on other sites

The problem goes deeper than I initially suspected.....it happens with ALL icon paths!!! And open paths too!!! :realmad:

[autorun]
icon="C:\Drive Custom IPod Shuffle.ico"

Grrrrr....

F:\C:\Drive Custom IPod Shuffle.ico

What could cause this? Iconpackager? Registry?

Edited by Palii
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...