Windows 10: lil bit of .reg file help. cant figure out how to reset string

Discus and support lil bit of .reg file help. cant figure out how to reset string in Windows 10 Support to solve the problem; here's an example [HKEY_CLASSES_ROOT\.bash_auto_file] @="Bash Script" it adds the value "Bash Script" to the default value of the .bash_auto_file... Discussion in 'Windows 10 Support' started by klepp0906, Feb 26, 2020.

  1. klepp0906 Win User

    lil bit of .reg file help. cant figure out how to reset string


    here's an example

    [HKEY_CLASSES_ROOT\.bash_auto_file]
    @="Bash Script"

    it adds the value "Bash Script" to the default value of the .bash_auto_file key.

    i'm trying to reset the default string to its natural state with (value not set)

    [HKEY_CLASSES_ROOT\.bash_auto_file]
    @=""

    results in the value of the default string being blank, not returned to its (value not set) state. I have to actually open the string with its already blank value, then hit ok and it then populates with (value not set)

    if it were any other key, i could just delete the key entirely - alas its not an option here. I'm preeetty new to making my own .reg files and even if as i assume, blank and (value not set) are functionally the same, id love a way to return it to its "not touched" state if possible.

    :)
     
    klepp0906, Feb 26, 2020
    #1
  2. DaveM121 Win User

    Is that possible to APPEND something to a string value by a .REG file?

    Hi snljty

    Yes this can be done, can you please be a bit more specific

    Is it an actual Reg Key (1) you want to append to or is it one of the String values or DWORD's (2) as shown in the image below?

    .

    lil bit of .reg file help. cant figure out how to reset string 69f98556-bcf9-4d71-9757-b20089336c31?upload=true.png
     
    DaveM121, Feb 26, 2020
    #2
  3. Try3 Win User
    Import reg file in a batch file

    I suggest that, as a first step, you edit the batch file so it captures the errorlevel after the reg import command.

    - Something simple such asecho The reg import command result is - %ErrorLevel% will do as long as long as you put it in as the line straight after the reg import command and then put aPause command in as the next line [before restarting explorer] so you can have a look.

    - Checking the errorlevel will tell you whether reg import thinks it has completed correctly or not.
    - While you are checking the errorlevel you could also go to the Registry key [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search] to see what has happened to it [make sure you Refresh the view if you were already at that key beforehand]



    I have never used reg import but I know there are optional arguments for 32/64 bit items so perhaps you might investigate them
    - enter reg import /? >RegImport.txt in a command prompt to save the Help guidance that mentions these switches.
    - I do not think these switches are relevant but I have never investigated their use properly.
    - For all I know, the problem might be as simple as reg import not being able to handle the comment lines, such as ; Cartella utente, properly

    Best of luck,
    Denis
     
  4. slozomby Win User

    lil bit of .reg file help. cant figure out how to reset string

    Recent File List

    to prevent it from autopopulating try making the reg key
    HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion
    \Applets\Paint\Recent File List read only
     
    slozomby, Feb 26, 2020
    #4
Thema:

lil bit of .reg file help. cant figure out how to reset string

Loading...
  1. lil bit of .reg file help. cant figure out how to reset string - Similar Threads - lil bit reg

  2. BSOD cant figure it out

    in Windows 10 Software and Apps
    BSOD cant figure it out: Good morning,I have updated all drivers, turned UAC on, updated windows, etc and this one laptop keeps crashing with the same errors. I am hoping someone can analyze the dump file because I can't make any sense of...
  3. Cant figure out how to sign in

    in Windows 10 Gaming
    Cant figure out how to sign in: I cant sign in to PC anymore. I got this PC for years now and this is the first time happened. I dont know what changes in the past days since im not the one who used the PC but, when I got it back I was able to sign in once and now I dont know my sign in page is missing. I...
  4. Cant figure out how to sign in

    in Windows 10 Software and Apps
    Cant figure out how to sign in: I cant sign in to PC anymore. I got this PC for years now and this is the first time happened. I dont know what changes in the past days since im not the one who used the PC but, when I got it back I was able to sign in once and now I dont know my sign in page is missing. I...
  5. Cant figure out how to sign in

    in Windows Hello & Lockscreen
    Cant figure out how to sign in: I cant sign in to PC anymore. I got this PC for years now and this is the first time happened. I dont know what changes in the past days since im not the one who used the PC but, when I got it back I was able to sign in once and now I dont know my sign in page is missing. I...
  6. I cant figure out how to sign in

    in Windows 10 Gaming
    I cant figure out how to sign in: My sign in page went missing in my device. I tried to restart multiple times but it just stuck at the welcome page. I cant figure out how to sign in and I cant remember any changes or updates happens on the device. Please help me....
  7. I cant figure out how to sign in

    in Windows 10 Software and Apps
    I cant figure out how to sign in: My sign in page went missing in my device. I tried to restart multiple times but it just stuck at the welcome page. I cant figure out how to sign in and I cant remember any changes or updates happens on the device. Please help me....
  8. I cant figure out how to sign in

    in Windows Hello & Lockscreen
    I cant figure out how to sign in: My sign in page went missing in my device. I tried to restart multiple times but it just stuck at the welcome page. I cant figure out how to sign in and I cant remember any changes or updates happens on the device. Please help me....
  9. Cant figure this one out.

    in Windows 10 Ask Insider
    Cant figure this one out.: So my pc been restarting on me. I been running test trying to find out what's cause it. Today I notice my memory in task manager says 2.2/7.9 gb. I have 2x8gb ram stick in my pc. Under system it shows 16gb but only 7.9 is usable. Do I have a bad ram stick? submitted by...
  10. Is that possible to APPEND something to a string value by a .REG file?

    in Windows 10 Customization
    Is that possible to APPEND something to a string value by a .REG file?: Hello, I am trying to modify my registry and I want to APPEND something to the value of a key, like: modify [some\path\to\a\key] "key_name"="original_key_value" to [some\path\to\a\key] "key_name"="original_key_value appended_key_value" using a .REG file. Is...