answersLogoWhite

0


Best Answer

You can only do it with regetit.exe, and plus if you are asking to change it with a batch file ... trying to make a virus?

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you edit your registry from a batch file?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How do you name a batch program?

Assuming you mean a shell script (AKA batch file), you simply add a .bat as the extension to any plaintext file. There is no limitation for the actual filename aside from this (except for regularly unallowed charachters like > and /). For instance, if you wanted to name your batch file hello world, you would open up a new notepad document, enter your code, then save as File Name: hello world.bat and change the Save as Type: All Files. Windows automatically recognizes any file with the .bat extension as an executable batch file, so to run it, you would just double-click it like any other document or file. To edit the batch file again, you can right click it and select Edit, or use notepad to open it from its respective location. Hope that answers your question.


What is the difference between rem and echo in batch?

rem is a comment that is only seen if you edit the batch echo actually is printed when the batch is running


Can you make a batch script where windows update will be set to automatic?

WARNING: The following answer contains information related to the Windows registry. You use this information entirely at your own risk!The "automatic" option is stored in the Windows registry, here:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto UpdateThe AUOptions value has the following settings:0x00000001 (1): Never check for updates (not recommended)0x00000002 (2): Check for updates but let me choose whether to download and install them0x00000003 (3): Download updates but let me choose whether to install them0x00000004 (4): Install updates automatically (recommended)The CachedAUOptions value must match the AUOptionsvalue. Both values are REG_DWORD values. To switch to automatic updates, change both values to 0x00000004 (4).To silently switch to automatic updates via batch file, first create the following REG file (or ECHO it to a temporary file from within your batch file):Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update]"AUOptions"=dword:00000004"CachedAUOptions"=dword:00000004Within your batch file execute the following command:reg import Replace with the full path and file name of your saved REG file. If you ECHO'd a temporary file, remember to delete the temporary file when you are finished importing.


How do you edit cbr files?

1. change the extension file .cbr to .rar 2. right klick that file, and etract them 3. you have opened them 4. now you can edit that file


What are the features of batch file programming?

Batch file programming is dos based programming you have to use dos commands .It is very good to perform some repetitive task in computer programming is easy you should only know the dos commands.

Related questions

Batch file to edit registry key?

Hmm ... making a virus here?


What windows xp program fiel is used to edit the registry?

By "fiel" you must surely mean "file"...You can edit the registry by using the "regedit" program built into windows


How to view what a .bat file does without running batch?

Right click on it, then click edit.


Where is the PC name stored on the C drive?

The windows registry. Technically in the file system.dat though you cannot directly edit this file


How do you edit system registry entries and what are the precautions must be taken to safe delete unwanted entries from registry?

You can edit registry but it is recommended that you do not edit registry if you are not a programmer because editing registry incorrectly can cause havoc.


How do I check if a registry value exist or not from a DOS batch file?

Get the Registry entry using regedit command. use the command from command prompt or copy that in a batch file and execute. Use errorlevel command to verify. hope this helps!! @echo off reg query RootKeyName\Path\To\Key\To\Query /v KeyName echo Does not Exist!!!!


How do you edit registry?

You can't edit your registry manually. registry is crucial part of windows where aall configuration files saved.


What is the extension of batch file?

the extension of a batch file is ".bat"


Error- you don't have privillages to edit registry?

Registry is the crucial part of windows. You should not edit registry as it may corrupt your windows. You can clean your registry without going there. This is possible only with registry cleaner.


How do you name a batch program?

Assuming you mean a shell script (AKA batch file), you simply add a .bat as the extension to any plaintext file. There is no limitation for the actual filename aside from this (except for regularly unallowed charachters like > and /). For instance, if you wanted to name your batch file hello world, you would open up a new notepad document, enter your code, then save as File Name: hello world.bat and change the Save as Type: All Files. Windows automatically recognizes any file with the .bat extension as an executable batch file, so to run it, you would just double-click it like any other document or file. To edit the batch file again, you can right click it and select Edit, or use notepad to open it from its respective location. Hope that answers your question.


Can a file with a weird extension but with batch file code be read using another batch file?

Nope, the format of a file is a vital part of a successful batch file. Even if a file with an unknown file format contains working batch file code in it, a batch file will still not be able to read it because of its foreign file extension. If you want the batch file to be able to read the foreign file, then you can set it to rename the mutated file to .bat format and then read it for it to work. Example: @Echo off REN File.Foreign File.bat CALL File.bat exit


What is a batch file?

A batch file is the text file that contains a series of commands that MS-DOS carries out. A batch file is created by COPY CON command after specifying a file name by using extension as .BAT in DOS mode.