Use a REG-file: with "regedit" or with AHK

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Peter2
Posts: 325
Joined: 21 Sep 2014, 14:38
Location: CH

Use a REG-file: with "regedit" or with AHK

17 Aug 2020, 01:29

I have a REG file which I have to read (to fill into) the registry. I would use "RunWait, regedit /s my_settings.reg", or ...

Is there a better solution in AHK?

Peter
Peter (AHK Beginner) / Win 10 x64, AHK Version v1.1.33
BoBo
Posts: 6564
Joined: 13 May 2014, 17:15

Re: Use a REG-file: with "regedit" or with AHK

17 Aug 2020, 03:31

An AHK-noob with, so far, 254 postings at the forum?
And yes, both options should do it. Using the reg-file OR AHK's RegWrite command.

Just out of curiosity, as you are from CH, what's your native/main language? :)
Peter2
Posts: 325
Joined: 21 Sep 2014, 14:38
Location: CH

Re: Use a REG-file: with "regedit" or with AHK

17 Aug 2020, 03:46

Thanks for quick reply.
BoBo wrote:
17 Aug 2020, 03:31
An AHK-noob with, so far, 254 postings at the forum? ...
Yes. Twice a year I spent 2 days to try to remember things that I have done on a simple level and to try to not mix up with other languages .. :(
BoBo wrote:
17 Aug 2020, 03:31
...Just out of curiosity, as you are from CH, what's your native/main language? :)
DE
Peter (AHK Beginner) / Win 10 x64, AHK Version v1.1.33
BoBo
Posts: 6564
Joined: 13 May 2014, 17:15

Re: Use a REG-file: with "regedit" or with AHK

17 Aug 2020, 04:09

So, Grüezi/Grüessech Peter :)
If you need some support using your reg file's content with RegWrite feel free to come back. Good luck :)

Btw, CHer und AUTer sind auch im "Deutschen" AHK-Forum willkommen :thumbup:
Peter2
Posts: 325
Joined: 21 Sep 2014, 14:38
Location: CH

Re: Use a REG-file: with "regedit" or with AHK

17 Aug 2020, 05:07

Thanks, Bobo

I just learned that I don't need

Code: Select all

Runwait, regedit /s,%a_temp%\my_file.reg
-> this calls always the dialogue.
I just need only

Code: Select all

Runwait, %a_temp%\my_file.reg
For RegWrite I suppose it's fine for single values, but here I have to extract / to loop the content of the reg-file?
Peter (AHK Beginner) / Win 10 x64, AHK Version v1.1.33

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: RandomBoy and 276 guests