Benjaman
Rookie

How do I create a .BAT file instead of a .REG file ?


Hi all , I want to add reg add batch file instead of a .reg file , I have a reg key and when I double click on it exports some data to registry which is fine but now the problem is that I want to add these data through a batch file(not myreg.reg file) so i think i should use REG ADD right? here is my reg data REGEDIT4 [HKEY_CURRENT_USERSoftwareMy Own File Sorter] [HKEY_CURRENT_USERSoftwareMy Own File SorterRegcode] @="DCFA1E43-4F572A3A-C6EC9F67-8A1C9C41-0607E9D7-BF1FDF3A-AE703C7E-B3666661" [HKEY_CURRENT_USERSoftwareMy Own File SorterUser] @="new user" When I copy this data onto a new batch file and replace [ ] with " " then I add REG ADD at the beginning of each line so it looks like this REG ADD "HKEY_CURRENT.... REG ADD "HKEY_CURRENT.... It is adding each line succesfully but in the end its not working.
8 months ago
Respond to this discussion
Mitesh Patel | Oct 13 2011

To create a bat file, we just open the lock in notes and type the command we want to do! (Below is a series of commands in ms)
Then go to where it says Save As and name saved with the extension. Bat (*. bat).
Now we just ejected and ready!

This can be very useful to automate tasks (provided you know how to use the commands in ms) and also to make jokes! or virus!
Say it with commands virus can do anything! to reformat!
So if you see any. Bat, I would recommend please do it not to open or right click - edit, so that way they are not executed and the content are presented!

ACA is a page with more command that can help:
http://www.ayuda-internet.net/tutoriales/manu-msdos/manu-msdos.html

You can view the services running "services.msc"
The services responsible for implementing the process services.exe
The services are specified in the registry at HKEY_LOCAL_MACHINE SYSTEM CurrentControlSet Services
For the control of the services there sc command to create new services specifically sc create. More information about the sc command in Windows Help: Start => Run => ms-its:% windir% Help Ntcmds.chm:: / sc.htm
The problem I had is that I can not create a service for an executable either because when it is started while an error like "The program did not respond within a certain time" and closes. I think to put an executable here you have to create as a service or something, I think either an executable does not work, everything is to provide ...
You see it in msconfig.
It's recommended because people rarely look at the services and there are many, but I know someone fairly experienced. Better to use other methods if you can.
Services can run processes as different users (including SYSTEM)
There I discovered a new method that passes almost unnoticed by their infrequency of use. This method brings Windows so you can run batch files every time you shut down Windows, or switch it on, but you can also run other executables (. Exe). Well, first that there are two registry keys in which you have to write: "HKLM SOFTWARE Policies Microsoft Windows System Scripts " and "HKLM SOFTWARE Microsoft Windows CurrentVersion Group Policy State Machine Scripts "

© 2012, Instamedia. Some rights reserved. Powered by Instapress and Instacheckin.