Need a variable printer name for DOS/Windows filePro
Kenneth Brody
kenbrody at spamcop.net
Fri Mar 29 14:56:14 PDT 2013
On 3/29/2013 4:52 PM, Richard Kreiss wrote:
> Top post.
>
> Windows may burp on the colons in @tm.
No "may" about it. Windows *will* choke on the colons, *if* you actually
try to use a filename with multiple colons. However, the code below strips
out the colons with mid().
NB: There's a reason I chose to use the words "multiple colons".
> On Mar 29, 2013, at 4:21 PM, "Richard D. Williams" <richard at appgrp.net> wrote:
>
>> Mike,
>>
>> Try this.
>>
>> if : fa eq ""
>> then:
>> dd(8,yymd)=@TD;tm(6)""{mid(@TM,"1","2"){mid(@TM,"4","2"){mid(@TM,"7","2");fa(50,,g)="/appl/fpmerge/"{dd{tm;printer
>> file (fa)
>>
>>
>> Don't forget to issue the printer reset command when you are done. i.e
>>
>> @DONE if:
>> then: printer reset
I'm not sure what you think that PRINTER RESET will do there.
[...]
>> On 3/29/2013 8:28 AM, Mike Schwartz wrote:
>>> In define printers for the Windows version of filePro 5.0.14 running on Windows 7 (no Unix involved), in Define Printers, is there any way to create a unique output file name based on %TIME% or some other Windows system variable?
>>>
>>> ┌───────────────────────────────────────┐ 5.0.14DN9
>>> │ P R I N T E R M A I N T E N A N C E │
>>> └───────────────────────────────────────┘
>>> --Name-- --Type-- --Destination File--- ------------Comment------------
>>> 1 USB ◄ DUMB ◄ WIN:Dell968 ◄ Laser Printer ◄
>>> 2 prn ◄ PAN1695 ◄ LPT1 ◄ Panasonic Printer ◄
>>> * 3 file_it ◄ NOCODES ◄ print\PrintThis%time%> Send the output to a file ◄
--
Kenneth Brody
More information about the Filepro-list
mailing list