Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Printer Selection
#1
Hello, I am not very knowlegable in the art of writing batch files. My company has an old calender program that was written for us long ago; it has a batch file that directs it to print to whatever local printer is attached to the PC the program is running on. I would like to add a line of code to this batch file, to change the printer it prints to, to the network server printer. How would I go about doing that?

thank you.
Reply
#2
Perhaps if you pasted the contents of the batch file, someone here would be able to help you. Big Grin
I'd knock on wood, but my desk is particle board.
Reply
#3
you're not going to be able to do that with just straight DOS batch files. Your'll need some kind of Windows helper proggie to change settings like that.
Reply
#4
Eniigma,

Are you asking to have this print to both the local and network server ?
If you are just wanting to share the program itself, then you may want to have it uploaded to the server you are connected to.
Another way you may be able to do it , is to send the calendar via File Sharing.
This would work for a small company, but I wouldn't recommend it if it's a rather large one. :o
adsherm
Reply
#5
The program is on the server, and only the server; but used on each local machine in the company. I know it sounds weird, but the program is somehow set to print on whatever printer is hooked up to the local machine you are running the program from. And yes, I'm sure that the program is ONLY on the server, the workstations have nothing more than a shortcut to it. I was told by someone that was around back when this program was created, that you can edit a "batch" file in the program directory to set it to print to the server instead. There is only one ".bat" file in the directory, and here is what's in it.

Code:
@CLS
@PAUSE
@CALENDAR
@CAPTURE /Q=pq1 /NB /FF /TI=20
@ENDCAP
@EXIT
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)