ReplInFiles in HEX Mode

ReplInFiles in HEX Mode

2
NewbieNewbie
2

    Jul 21, 2006#1

    Hi people,

    I need to replace lot of files i need to open in HEX mode and replace a hex characters for others. I try the following macro but seems not to work.
    Someone can help

    thanks.

    The macro i'm trying is the following:

    InsertMode
    ColumnModeOff
    HexOn
    UnixReOff
    ReplInFiles "WinOutput" "" "E:\Profiles\" "*.spf" "4D 00"
    "73 00"


    The last string between "" is in a different line.
    I put the HexOn at the begining.
    my version is 11.00
    The string searched and replaced is expressed in HEX.

    Thanks.

    6,675585
    Grand MasterGrand Master
    6,675585

      Jul 21, 2006#2

      The ReplInFiles command cannot be used to replace in HEX. Replace In All is only for text string replaces. Also Replace In All does not open the files into the edit window because it is a disk based only command. So HexOn is useless.

      Replace In All can be used to replace a string which also contains control characters in the range of 0x01 til 0x1F by opening a file in text mode which already contains the search and replace string and copying the strings from the edit window into the find/replace dialog. But 0x00 cannot be specified in or copied to the text find/replace dialogs because 0x00 is the string termination character.

      Maybe XCHANG32.EXE from Clay's Utilities is helpful for you to do this job.
      Best regards from an UC/UE/UES for Windows user from Austria

      2
      NewbieNewbie
      2

        Jul 21, 2006#3

        Thanks you Mofi for you instant reply, you save me, that program was the one i was looking, it's perfect for what i need to do.

        Hugs from Spain,
        cbf74