Results 1 to 2 of 2

Thread: Convert Hex string Challenge

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2000
    Location
    San Antonio, TX
    Posts
    1

    Smile

    I don't even know if this is possible using VB, but here is something that I know would be useful.
    Automatically (by command line) open a file
    Find a single hex value (or a string of hex) depending on the command line switch
    Convert each occurrence of the hex value (or string) to a different value
    Save the file with the same name
    While this could be done using a text editor quite easily, that requires user input. A distributable component can be called in the middle of a transformation from one input format on the fly would be useful. For example: UNIX to DOS, if a delimiter is a “non-printable, non-viewable” character, or if a delimiter like (’) as in O’Leary would cause an exception during processing.

    If anyone has any ideas, I would like to see them.

    Thanks
    Shawn McCullough

  2. #2
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    I don't know how to get command line parameters in VB, but what you're suggesting isn't that hard. In fact the code for it already exists in VB6, in the Replace function. If you don't have VB6 then you can easily write your own version in 10-15 lines of code.
    Harry.

    "From one thing, know ten thousand things."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width