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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

UNIX and VB 1

Status
Not open for further replies.

FJAY

Programmer
Apr 23, 2003
106
CA
Good Afternoon - what do I need to run or use UNIX commands in my VB program. For example the UNIX command will be printing to a specified printer
 
I thought VB only ran on Microsoft Windows Operating systems

Or do you have two machines
- one running windows and VB
- one running unix?
 
I have only one machine running windows and VB. I will be installing the UNIX for Windows program on all the PC that will be running my VB program. Thanks.
 
Do you mean Interix from Microsoft?

If so, you can call any of the unix utilities that came with it, or scripts you wrote using it, as you would any other script or program from VB.

 
Good Afternoon - all I want to do is use a UNIX command in my VB program to print to a printer. Like this:

lp -dprintername filename.

Can someone show me how to do this.
 
Why not save yourself the trouble and use the DOS command print?

Annihilannic.
 
Good Afternoon - Annihilannic, can you please be more explicit. Do I need to include the DOS command in my VB code. The problem is that the printer only recognizes UNIX command to print the file (form). Thanks.
 
FJAY,

This is very confusing. UNIX and Windows are operating systems. The printer itself does not understand any operating system commands.

To print from UNIX you would use lp, but since you are printing from Windows you will need to print using the supplied interfaces in VB, or by using the DOS print command. Type print /? at a DOS prompt to find out how to use it.

Obtaining a UNIX emulator or other tools just so you can print from Windows using a UNIX command does not make sense unless it is definitely the only way you can do it.

Annihilannic.
 
SamBone (Good Afternoon) - I'm using Interix Utilities (Services for UNIX). All I want to do is open the C Shell from VB program and send some commands to the prompt.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top