Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Windows Forms
  4. .bat execution Or something else?

.bat execution Or something else?

Scheduled Pinned Locked Moved Windows Forms
windows-adminperformancequestion
4 Posts 4 Posters 3 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jason Sani
    wrote on last edited by
    #1

    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:

    L D Richard Andrew x64R 3 Replies Last reply
    0
    • J Jason Sani

      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:

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      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[^]

      1 Reply Last reply
      0
      • J Jason Sani

        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:

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • J Jason Sani

          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:

          Richard Andrew x64R Offline
          Richard Andrew x64R Offline
          Richard Andrew x64
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups