SureshVeera
asked on
Printing in Java Using Runtime.exec
Hai
I have to print a file in windows (in local printer)using Runtime.exec method.I tried it using the conventional command of copy <filename> lpt1 /b .but it shows error.Is it possible to do the above.If so pls let me know.
Thanx in Advance...
V.Suresh
I have to print a file in windows (in local printer)using Runtime.exec method.I tried it using the conventional command of copy <filename> lpt1 /b .but it shows error.Is it possible to do the above.If so pls let me know.
Thanx in Advance...
V.Suresh
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
- split points between karlinsky and nebeker
Please leave any comments here within the
next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !
girionis
Cleanup Volunteer
I will leave a recommendation in the Cleanup topic area that this question is:
- split points between karlinsky and nebeker
Please leave any comments here within the
next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !
girionis
Cleanup Volunteer
karlinsky, points for you at:
https://www.experts-exchange.com/questions/20633872/points-for-karlinsky-re-20234915.html
per recommendation
SpideyMod
Community Support Moderator @Experts Exchange
https://www.experts-exchange.com/questions/20633872/points-for-karlinsky-re-20234915.html
per recommendation
SpideyMod
Community Support Moderator @Experts Exchange
As far as I know 'copy' is an internal comand of windows command shell (cmd on NT/2000 or command on Win95/98) so the way to call it from Runtime.exec is
cmd /c copy <filename> lpt1 /b (on NT, it should work with command instead of cmd on 98/95 )
Hope this helps