Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sending a command from VB to the command line 1

Status
Not open for further replies.

FJAY

Programmer
Apr 23, 2003
106
CA
Good Afternoon - I'm trying to send a command from my VB program to the command line:

(1.) I want to send a command from inside my VB program to the C shell command line to print a file to a printer.

lp -d printername filename

It prints out a bunch of garbage.

Note:
I have Services for UNIX installed on my complete.

I will be glad if someone can give me a solution to these problems. Thanks.
 
Hey,

I think you "copy xyz.prn to lpt1" if the printer is local. You may also want to use a batch file. You may have a little more control over things.

good luck,
KCI
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top