Inserting The Contents Of A File - Not Working?
I do not get this feature to work:
"The user command dialog has a limit of 255 characters per command. Sometimes
this is not long enough for the desired user commands. You may specify user
commands longer than 255 characters by creating a text file containing the
desired printer commands. You may also use this capability to change the
contents of the file dynamically from an external program or batch file.
To insert the contents of a file, enter the function character, a question
mark [?] and the full path of the file. For example, if the caret [^] is the
function character, then to insert the contents of c:\user\mycommand.txt, you
would enter ^?c:\user\mycommand.txt. Any function characters present in
the inserted file will still be processed"
The Printer driver is cab xc6 (300dpi) v7.3.3
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
Tried that still not working.0
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
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:
Output file:mizOd PCX;LOGO-0<ESC>.<Binary>d PCX;LOGO-1<ESC>.<Binary>JOH0,PH2.953,0,DSl1;0,0,11,11.123,12.807I9.487,1.04,0;LOGO-0I3.083,1.04,0;LOGO-1A1e PCX;LOGO-0e PCX;LOGO-10
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