Posts: 2
Threads: 1
Joined: Jan 2005
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.
Posts: 3,279
Threads: 170
Joined: Nov 2003
Perhaps if you pasted the contents of the batch file, someone here would be able to help you.
I'd knock on wood, but my desk is particle board.
Posts: 1,439
Threads: 15
Joined: Apr 2003
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.
Posts: 75
Threads: 11
Joined: Nov 2003
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
Posts: 2
Threads: 1
Joined: Jan 2005
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