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

= command for type abc.txt>prn (Dos command) 1

Status
Not open for further replies.

shanmugham

Programmer
Jun 19, 2001
71
IN
i have a text file abc.txt
i have only dot matrix printer
i want to print that file

i tried through vb code with line input command it works fine

but the problem is our printer prints each character
by half and half(double times in each chr) like Doc print type

but in dos command
======================
type abc.txt>prn
======================
it print each character by a single impression
its fine

i tried opening that text file thru notepad
it works but the problem is, it print file names and page number. how to solve the problem

so i need equivalent command for
the above DOS Command

thanks in advance
shan
 
Dear Andyrne

YYEESS thank u very much, by god grace works fine !!!

Dim rtn As Long
rtn = Shell("cmd /c type c:\ec\ecrpt.txt>prn",vbNormalFocus)

it works fine, print well ..

once again thanks

shan

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top