UltraEdit/UEStudio loads logon batch file at logon

UltraEdit/UEStudio loads logon batch file at logon

3
NewbieNewbie
3

    Dec 15, 2006#1

    I have UEStudio v6.00 evaluation on a laptop running Windows XP Pro SP2. When I log onto the office network, a logon script is ran from the server to map network drives, in standard Windows client/server manner.

    For some reason UES seems to open this batch file every time I logon to the network. I can find no setting that would cause this.

    Anyone any idea why this happens? It is most annoying.

    TIA

    6,675585
    Grand MasterGrand Master
    6,675585

      Dec 15, 2006#2

      You have specified UltraEdit/UEStudio as default application for opening files with extension .bat.

      First look in UltraEdit/UEStudio at Advanced - Configuration - File Associations if there is an entry for .bat files and if so, select it and press the button Delete to delete the file association and restore original file association.

      If .bat files are not listed in the UltraEdit/UEStudio configuration dialog, you have to copy the following lines to a text file, save it with a name with the extension .reg and double click on the file to import it into the registry and so restore Windows XP SP2 default file association for batch files.

      Code: Select all

      REGEDIT4
      
      [HKEY_CLASSES_ROOT\.bat]
      @="batfile"
      
      [HKEY_CLASSES_ROOT\.bat\PersistentHandler]
      @="{5e941d80-bf96-11cd-b579-08002b30bfeb}"
      
      [HKEY_CLASSES_ROOT\batfile]
      @="MS-DOS Batch File"
      "EditFlags"=hex:30,04,00,00
      
      [HKEY_CLASSES_ROOT\batfile\DefaultIcon]
      @=hex(2):25,53,79,73,74,65,6d,52,6f,6f,74,25,5c,53,79,73,74,65,6d,33,32,5c,73,\
        68,65,6c,6c,33,32,2e,64,6c,6c,2c,2d,31,35,33,00
      
      [HKEY_CLASSES_ROOT\batfile\shell]
      
      [HKEY_CLASSES_ROOT\batfile\shell\edit]
      
      [HKEY_CLASSES_ROOT\batfile\shell\edit\command]
      @=hex(2):25,53,79,73,74,65,6d,52,6f,6f,74,25,5c,53,79,73,74,65,6d,33,32,5c,4e,\
        4f,54,45,50,41,44,2e,45,58,45,20,25,31,00
      
      [HKEY_CLASSES_ROOT\batfile\shell\open]
      "EditFlags"=hex:00,00,00,00
      
      [HKEY_CLASSES_ROOT\batfile\shell\open\command]
      @="\"%1\" %*"
      
      [HKEY_CLASSES_ROOT\batfile\shell\print]
      
      [HKEY_CLASSES_ROOT\batfile\shell\print\command]
      @=hex(2):25,53,79,73,74,65,6d,52,6f,6f,74,25,5c,53,79,73,74,65,6d,33,32,5c,4e,\
        4f,54,45,50,41,44,2e,45,58,45,20,2f,70,20,25,31,00
      
      [HKEY_CLASSES_ROOT\batfile\shellex]
      
      [HKEY_CLASSES_ROOT\batfile\shellex\DropHandler]
      @="{86C86720-42A0-1069-A2E8-08002B30309D}"
      
      [HKEY_CLASSES_ROOT\batfile\shellex\PropertySheetHandlers]
      
      [HKEY_CLASSES_ROOT\batfile\shellex\PropertySheetHandlers\PifProps]
      @="{86F19A00-42A0-1069-A2E9-08002B30309D}"
      
      [HKEY_CLASSES_ROOT\batfile\shellex\PropertySheetHandlers\ShimLayer Property Page]
      @="{513D916F-2A8E-4F51-AEAB-0CBC76FB1AF8}"
      The 3 hex(2) values are following strings (type REG_EXPAND_SZ):

      DefaultIcon: %SystemRoot%\System32\shell32.dll,-153
      edit command: %SystemRoot%\System32\NOTEPAD.EXE %1
      print command: %SystemRoot%\System32\NOTEPAD.EXE /p %1
      Best regards from an UC/UE/UES for Windows user from Austria

      3
      NewbieNewbie
      3

        Jan 05, 2007#3

        Thanks, that fixed it.

        I wonder why it put .bat in when I loaded UES.

        14
        Basic UserBasic User
        14

          May 15, 2015#4

          I admit that this is a necropost, but there's a reason...

          As you can see above, the functionality of UE USED to be "...press the button Delete to delete the file association and restore original file association..."
          However, this is no longer the case.
          I added bat and cmd files to the list of file associations in error (Edit batch files a LOT.... yeah... oops)
          Soon as I realized that I had disabled my entire set of batch launchers (D'oh!) I removed the file association.

          Now, every time I select a .bat or .cmd, I am asked what tool do I want to use

          This is SERIOUSLY NON-OPTIMAL!

          Whatever the logic/reasoning, what should I do to restore "correct" file processing?

          6,675585
          Grand MasterGrand Master
          6,675585

            May 15, 2015#5

            Windows 2000 and Windows XP

            UltraEdit v22.0.0.66 does following in Windows registry on German Windows XP SP3 x86 on selecting .bat from list in File Associations dialog and pressing button Add.

            Code: Select all

            [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.bat]
            @="batfile"
            is modified to

            Code: Select all

            [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.bat]
            @="UltraEdit.bat"
            and adding

            Code: Select all

            [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\UltraEdit.bat]
            @="Stapelverarbeitungsdatei für MS-DOS"
            "Old Default"="batfile"
            
            [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\UltraEdit.bat\shell]
            
            [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\UltraEdit.bat\shell\open]
            
            [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\UltraEdit.bat\shell\open\command]
            @="\"C:\\Programme\\IDM Computer Solutions\\UltraEdit\\Uedit32.exe\" \"%1\""
            
            [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\UltraEdit.bat\shell\print]
            
            [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\UltraEdit.bat\shell\print\command]
            @="\"C:\\Programme\\IDM Computer Solutions\\UltraEdit\\Uedit32.exe\" /p \"%1\""
            And UltraEdit deletes HKEY_LOCAL_MACHINE\SOFTWARE\Classes\UltraEdit.bat and changing default string for .bat back to batfile on reselecting .bat and pressing button Delete in File Associations dialog.

            In other words the previous file association is perfectly restored on Win 2K and Win XP.

            Windows Vista, Windows 7, Windows 8 and Windows 8.1

            Access to HKLM is not possible anymore for UltraEdit since Windows Vista as this requires administrative privileges which users do not have by default on Windows Vista and later versions of Windows.

            UltraEdit adds following to Windows registry on an English Windows 7 x64 machine using a standard account with user account control (UAC) enabled.

            Code: Select all

            [HKEY_CURRENT_USER\SOFTWARE\Classes\.bat]
            @="UltraEdit.bat"
            "Content Type"="text/plain"
            "PerceivedType"="text"
            
            [HKEY_CURRENT_USER\SOFTWARE\Classes\UltraEdit.bat]
            @="Windows Batch File"
            
            [HKEY_CURRENT_USER\SOFTWARE\Classes\UltraEdit.bat\shell]
            
            [HKEY_CURRENT_USER\Software\Classes\UltraEdit.bat\shell\Open]
            
            [HKEY_CURRENT_USER\SOFTWARE\Classes\UltraEdit.bat\shell\Open\Command]
            @="\"C:\\Program Files (x86)\\IDM Computer Solutions\\UltraEdit\\uedit32.exe\" \"%1\""
            
            [HKEY_CURRENT_USER\SOFTWARE\Classes\UltraEdit.bat\shell\Print]
            
            [HKEY_CURRENT_USER\SOFTWARE\Classes\UltraEdit.bat\shell\Print\Command]
            @="\"C:\\Program Files (x86)\\IDM Computer Solutions\\UltraEdit\\uedit32.exe\" /p \"%1\""
            But on deleting the file association just default string UltraEdit.bat under key HKEY_CURRENT_USER\SOFTWARE\Classes\.bat is deleted and nothing else.

            Everything else remains in Windows registry for current user account. And this results in opening the dialog for selecting an application for files with extension BAT by Windows as the default string is the reference to the key containing the data for the open action.

            The issue here is that by default HKEY_CURRENT_USER\SOFTWARE\Classes\.bat does not exist, just HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.bat

            So UltraEdit does not record
            • if HKEY_CURRENT_USER\SOFTWARE\Classes\.bat was created completely new by UltraEdit on adding the file association and therefore requires a complete deletion of this key on deleting the file association, or
            • if HKEY_CURRENT_USER\SOFTWARE\Classes\.bat was already existing on adding the file association requiring to record the default string as done on Windows XP and just restore the default string of this key on deleting the file association.
            In both cases deleting the file association should result in deletion of HKEY_CURRENT_USER\SOFTWARE\Classes\UltraEdit.bat.

            A simple solution for restoring the standard settings for files with extension BAT is in this case the deletion of the 2 keys created by UltraEdit which results in activating HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.bat again for current user account. This can be done by executing following two commands in a command prompt window:

            Code: Select all

            reg.exe DELETE HKCU\Software\Classes\UltraEdit.bat /f
            
            reg.exe DELETE HKCU\Software\Classes\.bat /f
            Best regards from an UC/UE/UES for Windows user from Austria

            14
            Basic UserBasic User
            14

              May 18, 2015#6

              The machine in question is a Win8.1 box

              Here's the script from a .reg file that completely restores .bat functionality (VERY comprehensive...)

              Code: Select all

              Windows Registry Editor Version 5.00
              
              [-HKEY_CLASSES_ROOT\.bat]
              
              [HKEY_CLASSES_ROOT\.bat]
              @="batfile"
              
              [HKEY_CLASSES_ROOT\.bat\PersistentHandler]
              @="{5e941d80-bf96-11cd-b579-08002b30bfeb}"
              
              [HKEY_CLASSES_ROOT\batfile]
              @="Windows Batch File"
              "EditFlags"=hex:30,04,00,00
              "FriendlyTypeName"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,\
                00,6f,00,6f,00,74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,\
                32,00,5c,00,61,00,63,00,70,00,70,00,61,00,67,00,65,00,2e,00,64,00,6c,00,6c,\
                00,2c,00,2d,00,36,00,30,00,30,00,32,00,00,00
              
              [HKEY_CLASSES_ROOT\batfile\DefaultIcon]
              @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
                00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,69,00,6d,00,\
                61,00,67,00,65,00,72,00,65,00,73,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,36,\
                00,38,00,00,00
              
              [HKEY_CLASSES_ROOT\batfile\shell\edit\command]
              @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
                00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,4f,00,\
                54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,25,00,31,00,00,\
                00
              
              [HKEY_CLASSES_ROOT\batfile\shell\open]
              "EditFlags"=hex:00,00,00,00
              
              [HKEY_CLASSES_ROOT\batfile\shell\open\command]
              @="\"%1\" %*"
              
              [HKEY_CLASSES_ROOT\batfile\shell\print\command]
              @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
                00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,4f,00,\
                54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,2f,00,70,00,20,\
                00,25,00,31,00,00,00
              
              [HKEY_CLASSES_ROOT\batfile\shell\runas]
              "HasLUAShield"=""
              
              [HKEY_CLASSES_ROOT\batfile\shell\runas\command]
              @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
                00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,63,00,6d,00,\
                64,00,2e,00,65,00,78,00,65,00,20,00,2f,00,43,00,20,00,22,00,25,00,31,00,22,\
                00,20,00,25,00,2a,00,00,00
              
              [HKEY_CLASSES_ROOT\batfile\shell\runasuser]
              @="@shell32.dll,-50944"
              "SuppressionPolicyEx"="{F211AA05-D4DF-4370-A2A0-9F19C09756A7}"
              "Extended"=""
              
              [HKEY_CLASSES_ROOT\batfile\shell\runasuser\command]
              "DelegateExecute"="{ea72d00e-4960-42fa-ba92-7792a7944c1d}"
              
              [HKEY_CLASSES_ROOT\batfile\shellex\ContextMenuHandlers]
              @="Compatibility"
              
              [HKEY_CLASSES_ROOT\batfile\shellex\ContextMenuHandlers\Compatibility]
              @="{1d27f844-3a1f-4410-85ac-14651078412d}"
              
              [HKEY_CLASSES_ROOT\batfile\shellex\DropHandler]
              @="{86C86720-42A0-1069-A2E8-08002B30309D}"
              
              [-HKEY_CLASSES_ROOT\SystemFileAssociations\.bat]
              
              [-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.bat]
              Created by: Shawn Brink (http://www.eightforums.com)
              He has a tutorial that I found very useful: http://www.eightforums.com/tutorials/84 ... s-8-a.html