Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 11 of 11
  1. #1
    Join Date
    Oct 2007
    Posts
    233

    How to Finding a Thing in non-text file contents?

    How to Finding a Thing in non-text file contents?
    we Assumed that we have a "*.dat" file whit 500MB size file.
    and "*.dat" Contained of Content character.
    I need Finding "enything" on it .How to do it?

  2. #2
    Join Date
    Jul 2007
    Posts
    1,512
    Quote Originally Posted by Esfahan View Post
    How to Finding a Thing in non-text file contents?
    we Assumed that we have a "*.dat" file whit 500MB size file.
    and "*.dat" Contained of Content character.
    I need Finding "enything" on it .How to do it?
    far as i understand it that ams like kinda rars them as my winrar picks them up
    as locked rar arcives but its unable to unlock them as it don't know the password.

  3. #3
    Join Date
    Oct 2007
    Posts
    233
    Hi Dear rexzooly
    I am accepted your explanation on above.
    not is anyway method for do it?
    I want to find a group of character in a non-Text file.
    Allow me that say which file!
    MY Intent From non-Text is the "*.Iso" (Image file)!
    oh, Please no say me that its no way do it!
    AMS Can it worked.

  4. #4
    Join Date
    Jul 2007
    Posts
    1,512
    Quote Originally Posted by Esfahan View Post
    Hi Dear rexzooly
    I am accepted your explanation on above.
    not is anyway method for do it?
    I want to find a group of character in a non-Text file.
    Allow me that say which file!
    MY Intent From non-Text is the "*.Iso" (Image file)!
    oh, Please no say me that its no way do it!
    AMS Can it worked.
    why do you need to the that to find out what file it is you
    could juet string.split can't remeber the full comand.

  5. #5
    Join Date
    Oct 2007
    Posts
    233
    I have researching to Protect cd.(in about 2 Year)
    I want iso image (vcd format)howto retouch that then Write it on cd:
    1- only, display by vcd player.(no pc)
    2- no extractable of cd to hard drive.
    Abute VCD, I discover than retouch where from iso image for Reach above Goal.
    But ,retouch do it is hard and take time.
    I make Decide to create a App for it and share it on free in www.
    This is all of Adventure!

  6. #6
    Join Date
    Jul 2002
    Location
    Just South of Reality
    Posts
    778
    When dealing with binary files and Hex characters, many character are not readily printable nor displayable.
    However if you are searching for text data, something like the code below may be helpful.
    I don't know how large a text file AMS will handle when building a string...?

    Code:
    whatFile = Dialog.FileBrowse(true, "*", "C:", "", "*", "", false, false)
    
    binString = TextFile.ReadToString(whatFile[1])
    
    Paragraph.SetText("Paragraph1", ""..binString)
    arg = Input.GetText("Input1")
    Where = String.Find(""..binString, ""..arg, 1, true)
    Dialog.Message("Data found at file pos:", ""..Where)
    This code assumes you have an input object, a paragraph object, and place the code on (button On click).

    This code will return the starting pos in the String/file of the search argument.

    You will need to test this, as many characters may not be transferred properly.

    hth

  7. #7
    Join Date
    Oct 2007
    Location
    Gensokyo
    Posts
    1,324
    Quote Originally Posted by holtgrewe View Post
    When dealing with binary files and Hex characters, many character are not readily printable nor displayable.
    However if you are searching for text data, something like the code below may be helpful.
    I don't know how large a text file AMS will handle when building a string...?

    Code:
    whatFile = Dialog.FileBrowse(true, "*", "C:", "", "*", "", false, false)
    
    binString = TextFile.ReadToString(whatFile[1])
    
    Paragraph.SetText("Paragraph1", ""..binString)
    arg = Input.GetText("Input1")
    Where = String.Find(""..binString, ""..arg, 1, true)
    Dialog.Message("Data found at file pos:", ""..Where)
    This code assumes you have an input object, a paragraph object, and place the code on (button On click).

    This code will return the starting pos in the String/file of the search argument.

    You will need to test this, as many characters may not be transferred properly.

    hth
    More like:

    Code:
    whatFile = Dialog.FileBrowse(true, "*", "C:", "", "*", "", false, false)
    if (whatFile[1] == "CANCEL") then
    -- They pressed cancel.
    else
    -- They chose a file.
    binString = TextFile.ReadToString(whatFile[1])
    
    Paragraph.SetText("Paragraph1", ""..binString)
    arg = Input.GetText("Input1")
    Where = String.Find(""..binString, ""..arg, 1, true)
    Dialog.Message("Data found at file pos:", ""..Where)
    Remember:
    if (Variable[1] ~= "CANCEL") then

  8. #8
    Join Date
    Oct 2007
    Posts
    233
    Thanks holtgrewe and ShadowUK
    I chek it and reply here.
    I wish to work it.

  9. #9
    Join Date
    Oct 2007
    Posts
    233
    if you can explain this cods for me
    I can not apply it for search a string in non-text file
    specialy I no understand : ""..binString

  10. #10
    Join Date
    Oct 2007
    Posts
    233
    Hello guys
    is there a plugin for searching a string in Unlike-Text and replac whit a string?
    for example "myfile.iso"
    Please help me. I can not make a plugin for it.
    I searching in forum and discover that exist a plugin for it.
    but no find it.
    Please get me a link for download it or guid me whit a code or projrct ...
    I am newbie in forum , please aid me.
    Extreme Thanks.

  11. #11
    Join Date
    Jul 2002
    Location
    Just South of Reality
    Posts
    778
    Esfahan
    My prior post was for text based data and would probably not work real well with a non-text binary file. AMS is fairly robust when dealing with text based data, but would not be a good tool to use for 'patching' a binary file. Someone may have or may write a DLL that could do this but there may be tools available on the internet that may be a viable solution for you.

  12. #12
    Join Date
    Oct 2007
    Posts
    233
    Quote Originally Posted by holtgrewe View Post
    Esfahan
    My prior post was for text based data and would probably not work real well with a non-text binary file. AMS is fairly robust when dealing with text based data, but would not be a good tool to use for 'patching' a binary file. Someone may have or may write a DLL that could do this but there may be tools available on the internet that may be a viable solution for you.
    Thanks Dear holtgrewe
    U get me Hope for Live
    Iam waiting for help from Same Someone .
    Thanks

Similar Threads

  1. Error 3038: Could not seek in compressed file
    By Rikard in forum Setup Factory 7.0
    Replies: 2
    Last Post: 05-25-2006, 11:55 AM
  2. HELP: Trying to create a bookmark for audio
    By Ren in forum AutoPlay Media Studio 5.0
    Replies: 3
    Last Post: 09-12-2005, 05:20 AM
  3. Help: Trying to create a bookmark for audio
    By Ren in forum AutoPlay Media Studio 5.0
    Replies: 0
    Last Post: 09-09-2005, 01:43 PM
  4. HOWTO: "Hide" Externally Referenced Files
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-23-2002, 03:19 PM
  5. Text File Actions on Windows XP Professional
    By Deano in forum Setup Factory 6.0
    Replies: 8
    Last Post: 01-21-2002, 12:01 AM

Posting Permissions

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