11/27/2023 0 Comments Portable apps ultraedit![]() ![]() Please note that the part Path\UltraCompare\ucp.exe in the second command line must be adapted with correct path and file name of the executable of UltraCompare Professional Portable on the USB stick. %SystemRoot%\System32\reg.exe DELETE "HKCU\Software\Microsoft\Windows\CurrentVersion\App Paths" /f >nul 2>nul %SystemRoot%\System32\reg.exe DELETE "HKCU\Software\Microsoft\Windows\CurrentVersion\App Paths\uc.exe" /f >nul 2>nulįor /F "delims=" %%I in ('%SystemRoot%\System32\reg.exe QUERY "HKCU\Software\Microsoft\Windows\CurrentVersion\App Paths" 2^>nul') do exit /B %SystemRoot%\System32\reg.exe QUERY "HKCU\Software\Microsoft\Windows\CurrentVersion\App Paths\uc.exe" /ve 2>nul | %SystemRoot%\System32\find.exe /I "%~d0\Path\UltraCompare\ucp.exe" >nul || exit /B The second batch file is UnRegUC.cmd with following command lines: If there is by chance already an application registration for UltraCompare Professional in registry hive of current user on host machine, this application registration is kept as is. This batch file first checks if there is no registry key HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\App Paths\uc.exe and if this condition is true, it adds the registry key with the default string value being the fully qualified file name of the executable of UltraCompare Professional Portable on the USB stick. There is registered uc.exe (non-portable UltraCompare Professional) with the fully qualified file name of UltraCompare Professional Portable as that is the registry key searched also by UltraEdit Portable according to the information provided in the first post of this topic. So the drive letter assigned by Windows to the USB stick is used automatically on registering UC. %~d0 references drive letter and colon of the batch file containing this line. Please note that the part Path\UltraCompare\ucp.exe in the command line must be adapted with correct path and file name of the executable of UltraCompare Professional Portable on the USB stick. The first batch file is RegUC.cmd with just one long command line:Ĭode: Select all QUERY "HKCU\Software\Microsoft\Windows\CurrentVersion\App Paths\uc.exe" >nul 2>nul || %SystemRoot%\System32\reg.exe ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\App Paths\uc.exe" /f /ve /t REG_SZ /d "%~d0\Path\UltraCompare\ucp.exe" >nul There are two batch files required both stored also on the USB stick and executed from the USB stick. It is of course possible to manually do a temporary registration of UltraCompare Professional for current user only so that UltraEdit Portable recognizes UltraCompare Professional Portable. ![]() For that reason there is no application registration done on the computer on which the portable versions are executed from the USB stick. The portable versions are used without the execution of an installer on the machine on which the USB stick with the executables is plugged in. The application registration is done by the installers of UltraCompare, UltraEdit, UEStudio. UltraEdit detects the availability of UltraCompare Professional by existence of its application registration. I tested my solution with the non-portable versions UltraEdit and UltraCompare Professional. ![]() Note: for more information on how UltraEdit uses temp files, please see our temporary file power tip.I have to mention first that I have neither UltraEdit Portable nor UltraCompare Portable and so could not test my solution with these two applications. For example, if you set this to 51,200 KB (which is a good threshold for most), UltraEdit will not use temporary files when you open a file that is more than 51,200 KB (50 MB). The threshold will set a limit for using temporary files on files that are over the specified amount. We recommend that you set a threshold for the temp file setting for files above a certain size (specified in KB). Important note: This does mean you are directly editing the original file so any changes will be permanent. Enable the option to “ Open file without a temp file.” This setting may be accessed in Advanced » Settings » File handling » Temporary files. By disabling temp file creation on load, UltraEdit will not first copy the file to your temp directory. Copying the file can cause the initial loading to be very slow, especially with huge multi-gigabyte files. However, when opening the file with a temporary file, UltraEdit must first create a copy of the file in your temporary directory. As UltraEdit uses 64-Bit handling for the file it has no real limit on file size, and does not use excessive RAM for editing. This is probably the most important tweak you can make to improve performance when opening very large files.Īs mentioned above, UltraEdit is a disk based editor, which means it only loads small portions of the file into memory.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |