.bat execution Or something else?
-
I used to be able to write bat files in my sleep. now, they are a fuzzy memory. Ok here's the deal, I need a something that I an run on start up or execute via executable, It will open a folder and merge about 50 different .reg files into registry, how ever, I want it to run silently, and no confirmation other then completion. I am sure I can put the files in a .dat and insert from there. any ideas on what I should use? Throw me a bone. Flame me. I don't mind, as long as you don't mind getting flamed, torched, nuked, back. :suss:
-
I used to be able to write bat files in my sleep. now, they are a fuzzy memory. Ok here's the deal, I need a something that I an run on start up or execute via executable, It will open a folder and merge about 50 different .reg files into registry, how ever, I want it to run silently, and no confirmation other then completion. I am sure I can put the files in a .dat and insert from there. any ideas on what I should use? Throw me a bone. Flame me. I don't mind, as long as you don't mind getting flamed, torched, nuked, back. :suss:
Jason Sani wrote:
Ok here's the deal, I need a something that I an run on start up or execute via executable, It will open a folder and merge about 50 different .reg files into registry, how ever, I want it to run silently, and no confirmation other then completion.
I am sure I can put the files in a .dat and insert from there. any ideas on what I should use?Write a bat-file? Make a list of all the filenames using the dir-command is a matter of looking up the switches. As is importing a reg-file in the registry; KB 82821[^]
regedit.exe /s myregfile.reg
Bastard Programmer from Hell :suss: if you can't read my code, try converting it here[^]
-
I used to be able to write bat files in my sleep. now, they are a fuzzy memory. Ok here's the deal, I need a something that I an run on start up or execute via executable, It will open a folder and merge about 50 different .reg files into registry, how ever, I want it to run silently, and no confirmation other then completion. I am sure I can put the files in a .dat and insert from there. any ideas on what I should use? Throw me a bone. Flame me. I don't mind, as long as you don't mind getting flamed, torched, nuked, back. :suss:
First, this has nothing to do with Windows Forms. Second, you can use the REG IMPORT command in a batch file to import each .reg file. just open a CMD prompt and type
REG IMPORT /?
for more info.A guide to posting questions on CodeProject[^]
Dave Kreskowiak -
I used to be able to write bat files in my sleep. now, they are a fuzzy memory. Ok here's the deal, I need a something that I an run on start up or execute via executable, It will open a folder and merge about 50 different .reg files into registry, how ever, I want it to run silently, and no confirmation other then completion. I am sure I can put the files in a .dat and insert from there. any ideas on what I should use? Throw me a bone. Flame me. I don't mind, as long as you don't mind getting flamed, torched, nuked, back. :suss:
Put this into your batch file:
for %%a in (*.reg) do regedit.exe /s %%a
That should merge all files that end with ".reg".
The difficult we do right away... ...the impossible takes slightly longer.