AutoRun.INF Tip

If you are trying to auto-launch a file name that contains spaces, you will run into problems. The INF file will stop when it hits the space; thus not being able to locate the desired file. I searched high and low for a way around this issue, but it appears to be undocumented.

I tried single quotes and double quote — both with no luck. The solution turns out to be double double quotes. This is the strangest solution and one that I would have never guessed.

Example autorun.inf:

[autorun]
shellexecute=""Click Here.htm""

About this entry