Hi all,
in my C program, when i want to print on a local printer, i use this:

FILE *prn = fopen("lpt1", "w");

Could you give me the equivalent statement in a case of network printer (that is not on lpt1)?

Maybe i could use a batch file with:

C:\> print \\servername\print_share

but i cannot find the equivalent of shell in C.

Could you help me?

Thanks.

Chiara