Sign in to follow this  
Followers 0
Mat

_RegCheckSyntax

1 post in this topic

#1 ·  Posted (edited)

My second release this afternoon, Its half term - gives me a lot of free time!

This one checks for any syntax related errors in a .reg file or a string. I think it finds most of the errors I can think of, but it might not get all of them. If there is one that I have missed, please do tell! I'd be delighted to know.

Due to a lack of any real guidelines on the internet, I have had to check it by "experimenting" and from what I know works. I think I have it pretty much sussed now!

Download Link

Downloads so far is shown on the downloads page.

I have been checking it using this:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\Test Reg]
@="@Val"
"string"="This is a string"
"Binary"=hex:11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,\
  11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,\
  11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,\
  11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,01,\
  11,10,10
"DWORD"=dword:ffffffff
"Multi String"=hex(7):54,00,68,00,69,00,73,00,20,00,69,00,73,00,20,00,61,00,20,\
  00,6d,00,75,00,6c,00,74,00,69,00,20,00,73,00,74,00,72,00,69,00,6e,00,67,00,\
  2e,00,00,00,69,00,74,00,20,00,63,00,61,00,6e,00,20,00,77,00,6f,00,72,00,6b,\
  00,20,00,6f,00,6e,00,20,00,6d,00,6f,00,72,00,65,00,20,00,74,00,68,00,61,00,\
  6e,00,20,00,31,00,20,00,6c,00,69,00,6e,00,65,00,00,00,00,00
"Expandable String"=hex(2):54,00,68,00,69,00,73,00,20,00,69,00,73,00,20,00,61,\
  00,6e,00,20,00,65,00,78,00,70,00,61,00,6e,00,64,00,61,00,62,00,6c,00,65,00,\
  20,00,73,00,74,00,72,00,69,00,6e,00,67,00,21,00,21,00,00,00

Mat

Edit: Now includes use of "-" to remove keys and values.

Edit2: Now returns the line number of error in @Extended

Updated Download link @ 12 March 2010

Edited by Mat

Share this post


Link to post
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
Sign in to follow this  
Followers 0