I have written an app that shells a dos program (written in QB),which prints a bunch of stuff to the printer.

When I run this program (the dos program),from dos in the network ,on a computer that is not directly connected to the printer - the program works fine,and printes things to the printer as wanted.
When the program is shelled through my app , ont he same computer ,for some reasone it can not find the printer device and crashes .
The printing program also works when shelled from my app,
on a computer not connected to a network.

Any ideas why this is happening?

Is there an equivelent API command to the "shell" command that will maybe solve the problem?

I think shellexecute but I dont remember the exact sintax.
Tahnks.
Dan.