2006-06-01 17:47:19 UTC
I'm trying to write a batch file that will print labels on a thermal
printer. I already have the code to make the label print by using the "copy
/b file.prn lpt1". Now I want it to loop this command for however many
labels they want printed. I've been beating my brains in for the past 2
days ( haven't messed with DOS for quite some time ) and just can't get it
to take the input as a variable and pass it to the loop.
Example of what I want this thing to do:
Ask: How many labels would you like to print? ( input a number from 1 to
100 here )
Take that number and send it to a loop to run this command "copy /b file.prn
lpt1" until it reaches the amount they want and then end.
any help would be appreciated.
Thanks,
Mike
printer. I already have the code to make the label print by using the "copy
/b file.prn lpt1". Now I want it to loop this command for however many
labels they want printed. I've been beating my brains in for the past 2
days ( haven't messed with DOS for quite some time ) and just can't get it
to take the input as a variable and pass it to the loop.
Example of what I want this thing to do:
Ask: How many labels would you like to print? ( input a number from 1 to
100 here )
Take that number and send it to a loop to run this command "copy /b file.prn
lpt1" until it reaches the amount they want and then end.
any help would be appreciated.
Thanks,
Mike