2 exact copies of autorun.inf, one works one doesnt [duplicate]
I have two Autorun.inf files, the code inside them are exact same. But only 1 works, other one doesn't work.
The one that work is copied from DVD, and i edited it. The one that doesn't work created on my desktop by renaming text file ( i correctly renamed it ).
This one works
This one doesn't work
If you want the files :
Working one : http://www16.zippyshare.com/v/64IutSu4/file.html
Not working one : http://www98.zippyshare.com/v/zEqU2BZ7/file.html
Does anyone know why doesn't the one i created on my desktop wont work? and how can i get it working? and whats the difference between those 2 file?
Thanks.
Solution 1:
The 2nd .inf
, which doesn't work, appears to have been saved as UTF-8 with a UTF-8 BOM.
The UTF-8 BOM means that the file starts with the binary sequence EF BB BF
(in hex). But Windows expects autorun.inf
files to be plain text, so it won't recognize this one as such.
My advice is to choose the plain-text option in your text editor when saving .inf
files or similar.
Solution 2:
As dxiv has said, this is caused by UTF-8 BOM.
The file editor you are using, Notepad++, can tell you the encoding of the file.
UTF-8 BOM adds header bytes to the file that breaks their compatibility with standard ASCII files, whereas UTF-8 without BOM (or just plain UTF-8) files are fully reverse compatible with standard ASCII file, assuming you do not use any UTF-8 characters.
Notepad++ also has a HEX editor plugin and you will be able to see these extra bytes with it: