+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Handle Text File Operation oddness

  1. #1

    Default Handle Text File Operation oddness

    Has anyone noticed that when using the Script command, Handle Text File Operation", you seem to be limited to using one file at a time. I've tried running a DO LOOP where each iteration through the loop (Get Item) a record from a text file and then uses some data from that record to search through (Find Item) the entire contents of another text file for a possible match. Next iteration of the (Find Item) on the first file seems to be unable to go past the first record. I'm guessing file handles are being confused in the background?

    Can send a simple code example to illustrate if necessary.


    Jerry Shannon
    Caterpillar, Inc.

  2. #2
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Handle Text File Operation oddness

    Hi Jerry,

    good point. I think that your are indeed limited to using one file at a time. This is sub-optimal. I'll check this.

    Friedrich

  3. #3

    Default Re: Handle Text File Operation oddness

    Friedrich,

    That is disappointing that there is a restriction of "1" file that can be used at a time, especially since I could find no mention of it in any of the documentation. I guess there's no choice at this point other than to call some external routine when conditions become necessary to process more than 1 file at a time.

  4. #4
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Handle Text File Operation oddness

    Jerry,

    Yes, I agree 100%. There is no mention of it in the documentation and the original function design was (from the very beginning) single-file based only.

    We will see what we can do here and I'll get back to you.

    Friedrich

  5. #5

    Default Re: Handle Text File Operation oddness

    Friedrich:

    It's been over a month. Just wondering how long I should wait to hear back from you, or if I should just assume nothing is going to change in regard to the way this command was designed.

  6. #6
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Handle Text File Operation oddness

    Jerry,

    this is definitely not a trivial change and I can guarantee that we are working hard on it. But it requires a complete rewrite of quite a few main functions in the runtime.

    Yes, it would be easy to just change the documentation, but I would prefer a modified feature design.

    Friedrich

  7. #7
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Handle Text File Operation oddness

    Jerry,

    could you please send your code example (including text files) to support@lindersoft.com so we can test it here with our latest internal build? We have optimized the SetupBuilder runtime in quite a few areas (and I think your multiple-file scenario should work now).

    Friedrich

  8. #8
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Handle Text File Operation oddness

    Thanks so much for sending the project and test files!

    Friedrich

  9. #9
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Handle Text File Operation oddness

    Hi Jerry,

    the "Handle Text File Operation" script function supports multiple text files in our internal SetupBuilder 2018 now. We'll make a beta version available very soon. If it is okay with you, then I will send you the compiled "Multiple_File_Test.exe" to test it with your "User_Software_Request.txt" and "Approved_Software.txt" demo files.

    Friedrich

  10. #10

    Default Re: Handle Text File Operation oddness

    Friedrich:

    Yeah, sorry about that but google won't allow an email that has an attached .exe file and neither will my employer, so you won't be able to email it to me. The firewall rules are such that even if you zip the file or rename it to some other file extension, they still know it's an executable file and won't allow it through.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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