Skip to main content

Search

Search

Inserting The Contents Of A File - Not Working?

Comments

5 comments

  • Avatar
    Ian Einman

    If you are using an external file as the source of the user command, the ^? syntax needs to be the only thing present, you can't put other commands in front of it like your example.  Sorry that the documentation is not clear on this point.

    0
  • Avatar
    Legacy Poster

    Tried that still not working.

    0
  • Avatar
    Ian Einman

    I just tried it and it did work.  Try making sure that there is no trailing space or carriage return after the file name, and see if the file name is accessible to all users, rather than just the current user.  (The print spooler runs under a different user account so strict file permissions may foul it up.)

    0
  • Avatar
    Legacy Poster

    Thank you for a quick reply. Unfortunatly I still don not get it to work. I have checked access right to file and path. I have tried both ^?C:\CAB\EROI1.txt and ^?\\Ksd263\cab\EROI1.txt. If I add the command directly in the dialog it works fine. Is there any other option that should be set? 

     

    File content EROI1.txt:

     

    T 16,20,0,3,12;Ethanol

     

    Output file:

     

    mi
    zO
    d PCX;LOGO-0
    <ESC>.
    <Binary>
    d PCX;LOGO-1
    <ESC>.
    <Binary>
    J
    OH0,P
    H2.953,0,D
    Sl1;0,0,11,11.123,12.807
    I9.487,1.04,0;LOGO-0
    I3.083,1.04,0;LOGO-1
    A1
    e PCX;LOGO-0
    e PCX;LOGO-1
    0
  • Avatar
    Ian Einman

    It still could be an access rights issue to C:\CAB.  Vista, Win7 and later can be picky about how that is set up.  Try putting the file under your "My Documents" temporarily just to see if that is the issue.

     

    Another thing that might make it fail is if another application has the file locked.  If you have it open in another editor, close it.  Try rebooting if you haven't already.  If what you're trying to do is create the file dynamically from some other program, maybe that other program isn't closing it.

     

    Beyond that I'm out of ideas, the code behind this feature is quite simple.  The only apparently undocumented limitation is that the ^? must be the first two characters of the user command, there can't be anything in front of it.

    0

Please sign in to leave a comment.