home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.msdos.batch.nt      Fun with Windows NT batch files      68,980 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 67,028 of 68,980   
   peturbed@googlemail.com to Docfxit   
   Re: Errors on Reg Delete   
   29 Aug 17 06:38:13   
   
   On Saturday, 19 August 2017 19:57:38 UTC+1, Docfxit  wrote:   
   > I have used this code recently and it worked fine.  Now when I use it on the   
   same Win7 PC I get errors.   
   >   
   > @echo off   
   > Reg Delete "HKEY_CURRENT_USER\Software\Classes\Local Settings\   
   oftware\Microsoft\Windows\CurrentVersion\TrayNotify" /v "PastIconsStream"=-  /f   
   > Reg Delete "HKEY_CURRENT_USER\Software\Classes\Local Settings\   
   oftware\Microsoft\Windows\CurrentVersion\TrayNotify" /v "IconStreams"=-  /f   
   > taskkill /f /IM explorer.exe   
   > Start explorer.exe   
   > cmd   
   >   
   > These are the errors I get:   
   > ERROR: The system was unable to find the specified registry key or value.   
   > ERROR: The system was unable to find the specified registry key or value.   
   > ERROR: The executable program that this service is configured to run in does   
   not   
   >  implement the service.   
   >   
   > I know the registry keys are there.  I can delete them manually.   
   > I don't know why this computer is throwing errors for this.   
   >   
   > Thanks,   
   > Docfxit   
      
     ::----- START -----   
     @ECHO OFF   
     SET "CUTN=HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows"   
     SET "CUTN=%CUTN%\CurrentVersion\TrayNotify"   
     SET "VALS=PastIconsStream IconStreams"   
     SET "REXE=explorer.exe"   
      
     FOR %%A IN (%VALS%) DO REG DELETE "%CUTN%" /V %%A /F>NUL   
      
     :LOOP   
     TASKLIST /FI "IMAGENAME EQ %REXE%" /FI "STATUS NE RUNNING"^   
     |FIND /I "%REXE%">NUL &&(START %REXE%)||(TASKKILL /F /IM %REXE% &GOTO LOOP)   
      
     ::------ END ------   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca