Jump to content
Sign in to follow this  
freezer

.REG file import with Auto IT

Recommended Posts

freezer

Is it possible to import a .reg file into the registry.

It is a export from a registry that includes > 30 lines. Therefor I think that it will be a lot of work with RegWrite.

Please info if I can call and import a *.REG file via Auto IT.

A waiting your reply.

Freezer

Share this post


Link to post
Share on other sites
ResNullius

Is it possible to import a .reg file into the registry.

It is a export from a registry that includes > 30 lines. Therefor I think that it will be a lot of work with RegWrite.

Please info if I can call and import a *.REG file via Auto IT.

A waiting your reply.

Freezer

You can use the command line options of the Windows "regedit" command:

$regFile = @TempDir & "\myregfile.reg"
RunWait("Regedit " & $regFile)oÝ÷ Ù8Z·¥·¬º[b· yØ­¦º&¦Ø§*.Â+aj«¨µÚ2¢ìÛhêà{övØ^ríz{l¡ù²­èW¢Ú-êÞ+-¯*®¢Ûr¥é²Æ y©Ý~)ⲧ­©®¬¹Ç²Çîû§²çz˺Y²Æ y:¢Ø^±©¶§­­¶¦zËë¬zØ^ªê-þÊ®¢ÚÞçb¶Ì"µÈ_¢º®¢Û"éíªê-¢«jب«­¢+ØÀÌØíÉ¥±ôQµÁ¥ÈµÀìÅÕ½ÐìÀäÈíµåÉ¥±¹ÉÅÕ½Ðì)IÕ¹]¥Ð ÅÕ½ÐíI¥Ð½ÌÅÕ½ÐìµÀìÀÌØíÉ¥±¤

NOTE: With the /s option, you will get no notification of error, eg: myregfile doesn't exist, myfilereg isn't a proper registry file and it doesn't appear to return a usable errorlevel so you will have to do some autoit regread commands to test (some of) the entries afterwards.

Share this post


Link to post
Share on other sites
toxicvn

i want set permission for a key reg ?

help me :P:(

thank

Share this post


Link to post
Share on other sites
toxicvn

i want set permission for a key reg ?

help me :P:(

thank

Share this post


Link to post
Share on other sites
CosmicDan

i want set permission for a key reg ?

help me :P:(

thank

Please dont double post, it will actually deter people from helping you usually!

If you are speaking of getting permissions to a specific part of the registry hive, then see this

http://support.microsoft.com/kb/264584

Don't blame me if you kill your system - the REGINI tool will ERASE EXISTING PERMISSIONS on a registry key. Otherwise, you will have to launch a process as trustedinstaller to modify system keys. And that's too complicated for me to get into, as far as I know AutoIt cannot do that and you need external tools.

Share this post


Link to post
Share on other sites
AlmarM

Isn't this the 'Example Scripts' ?

AlmarM


Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Share this post


Link to post
Share on other sites
BrettF

Share this post


Link to post
Share on other sites
AlmarM

Isn't the limit 10 posts?

Maybe a mod got mislead by the title- I know I did. "How to import a .reg file into the registry with auto it"

Hmm yes its 10 :P ?

AlmarM


Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Share this post


Link to post
Share on other sites
CosmicDan

Ooops.. my bad!

Edited by DanielC

Share this post


Link to post
Share on other sites
AlmarM

Oh well, I think it doenst realy care :P

AlmarM


Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

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  

×