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?
Chat with our AI personalities
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.
rem is a comment that is only seen if you edit the batch echo actually is printed when the batch is running
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.
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
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.