Tapatalk

Load and Append to Existing

Load and Append to Existing

2
NewbieNewbie
2

    Sep 22, 2005#1

    We have an macro file for our department called "DepartmentMacros.mac".
    This file is defined in the option "Set Auto Load" in the Macro menu.
    It would be really nice if is was possible to Load and append my own macro file to the existing macrofile automaticly

    The option "Load and Append to Existing" in the Macro menu does do what I want., but I have to do it every time I start UltraEdit.
    If there was a macro command "LoadAndAppendToExisting" it is possible to create a macro LoadPersonalMacros and execute this macro automatic every time we start UltraEdit.
    The reason for this contruction is that we are not allowed to alter the "DepartmentMacros.mac" but I want to use my onw macro's

    Example:
    In the option "Set Auto Load" in the Macro menu we specify "DepartmentMacros.mac" as file we want to load at startup.
    In the same screen we fill in at "Macro name to execute" the macro "LoadPersonalMacros".
    The macro "LoadPersonalMacros" should Load and Append "PersonalMacros.mac" to "DepartmentMacros.mac"

    I have mailed the above mentioned suggestion to IDM.
    I hope there are a lot of other users who appreciated the new macro command. So if you like this command mail to IDM and request for this command.
    Dirk Peter

    6,685587
    Grand MasterGrand Master
    6,685587

      Sep 24, 2005#2

      I have an idea, how you can do that now. You could always start uedit32.exe with a batch file. The batch files first always combines DepartmentMacros.mac and your Personal.mac to a new Autoload.mac. Then it starts UltraEdit which automatically loads Autoload.mac. The content of the batch file should be:


      @copy /b "path\DepartmentMacros.mac" + "path\SpaceNull" + "path\Personal.mac" "path\Autoload.mac" >nul
      @"path\uedit32.exe" "%1"


      You have to add the paths to all files. SpaceNull is a special file, which you have to create once with UltraEdit. It contains only two bytes: a space (hex 20) and a null byte (hex 00). You can use this batch file also for files, which are yet opened with UltraEdit by a double click in windows explorer. Just modify the file types assignments from uedit32.exe to the batch file.
      Best regards from an UC/UE/UES for Windows user from Austria

      2
      NewbieNewbie
      2

        Sep 26, 2005#3

        :lol: Mofi, thanks for the solution

        Greetings from the Netherlands
        Dirk Peter