Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I get that error double-clicking this file on Win 2003:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Printers\Back Office Copier\DsDriver]
"printDuplexSupported"=hex:01
"printStaplingSupported"=hex:01

I'm confused, since this is just a pared-down export. What am I doing wrong?

share|improve this question
    
What did you pare out? – AthomSfere Sep 5 '13 at 15:31
    
@AthomSfere, A bunch of settings specific to this computer that I don't want to transfer to other computers. I only want the two settings above. – Kev Sep 5 '13 at 15:32
up vote 4 down vote accepted

What editor are you using? That looks like a legitimate reg file, but if you saved it in something other than Notepad you might have inadvertently added extra formatting codes.

share|improve this answer
    
Textpad, and it's saved as Unicode. – Kev Sep 5 '13 at 15:33
    
Save as (Windows/DOS) ASCII. It works fine on my Win7 and Win 2003 machines. – Rod MacPherson Sep 5 '13 at 15:36
    
TextPad didn't have an ASCII option but it did have ANSI, and that worked. Thanks! – Kev Sep 5 '13 at 15:37

I was having this problem as well - I had read to make sure it started with Windows Registry Editor Version 5.00 and that it was saved in ASCII or UTF-16 LE (Little Endian), but was still getting the error.

As it was though, I had a blank line before the 'Windows Registry' header - so I tried deleting that and it worked.

Not sure how I haven't run into this before (after 20 years!), unless they made the compiler less flexible at some point, or I happened to get lucky with all my regfiles.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .