Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old December 7th, 2005, 12:19 PM
Registered User
Join Date: Dec 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default submitting printer specific code/text to a port

I am trying to submit a text file containing printer instructions to a printer connected to a USB port. If I go to Start/Run and key in 'CMD', I am at the command prompt. from here I can key in...

TYPE C:\ShippingLabelFiles\FedEx\120505134156.txt >\Zebra-TLP2844-Z

It's the Dos TYPE command. 120505134156.txt contains the printer instructions. is the PC IP address. Zebra-TLP2844-Z is the Printer's Shared name.

This prints the FedEx label.
Old December 8th, 2005, 07:58 AM
Friend of Wrox
Join Date: Jun 2003
Posts: 453
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via AIM to Ankur_Verma Send a message via MSN to Ankur_Verma

Hi Dan,

I'm not sure if there's any direct way of executing DOS commands from C#.NET.
I think making a batch file for such an operation would be a much cleaner
option, that is if you havent done that already. Later on you can run this
batch file from your C# app, because that CAN be done from C#.

Refer to this post, it may help u


Ankur Verma

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to fetch text after specific tag text dipsut XSLT 10 May 23rd, 2007 02:57 PM
listen on a port to a specific IP address vb.net nmmeenaa General .NET 0 September 4th, 2006 01:16 AM
getnodes after specific text pendyalap XSLT 1 June 8th, 2006 05:13 PM
Focussing on a specific text box Dilip Nagle General .NET 4 January 6th, 2005 02:16 PM
ASP code to update database on submitting form? kkbigal Classic ASP Databases 3 July 14th, 2003 05:55 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.