Khansufyaan
asked on
How to print a .doc file from dos
Hi guys,
My computer and My printer is on a network. The problem is that the printer is not shared. Even though i can print through it. All i have is its IP address and sharename. How can I print through it?
This wont work.
PRINT c:\temp\copy.txt
because i havent specified the device.
I am using W2K. Please HELP!! I would give more points but thats all I have left.
My computer and My printer is on a network. The problem is that the printer is not shared. Even though i can print through it. All i have is its IP address and sharename. How can I print through it?
This wont work.
PRINT c:\temp\copy.txt
because i havent specified the device.
I am using W2K. Please HELP!! I would give more points but thats all I have left.
ASKER
C:\>print /d:\\bur-print-02\P10-HEAD HUNTER c:\temp\copy1.txt
C:\>copy con: lpt1:
This is what I got. But it didnt print at all.
C:\>copy con: lpt1:
This is what I got. But it didnt print at all.
Try this:
print /d:"\\bur-print-02\P10-HEA D HUNTER" c:\temp\copy1.txt
That should handle the spaces in the sharename.
print /d:"\\bur-print-02\P10-HEA
That should handle the spaces in the sharename.
ASKER
nope didnt work, still gave same results
What happens when you try the command:
print /d:"\\bur-print-02\P10-HEA D HUNTER" c:\temp\copy1.txt
print /d:"\\bur-print-02\P10-HEA
ASKER
C:\>print /d:"\\bur-print-02\P10-HEA D HUNTER" c:\temp\copy1.txt
C:\>copy con: lpt1:
Same result as last time. The printer is right infront of me but no printing going on.
C:\>copy con: lpt1:
Same result as last time. The printer is right infront of me but no printing going on.
Don't no why you are doing:
copy con: lpt1:
When you do this:
print /d:"\\bur-print-02\P10-HEA D HUNTER" c:\temp\copy1.txt
What is displayed at the DOS prompt? On my machine it is:
C:\Temp\temp.dat is currently being printed
Does it say that?
copy con: lpt1:
When you do this:
print /d:"\\bur-print-02\P10-HEA
What is displayed at the DOS prompt? On my machine it is:
C:\Temp\temp.dat is currently being printed
Does it say that?
ASKER
Hi,
I only type
print /d:"\\bur-print-02\P10-HEA D HUNTER" c:\temp\copy1.txt
the next line comes up by itself
copy con: lpt1:
and then it stays that way without printing. It freezes.
I only type
print /d:"\\bur-print-02\P10-HEA
the next line comes up by itself
copy con: lpt1:
and then it stays that way without printing. It freezes.
What happens when you type print /?
On my NT2000 machine the following prints:
PRINT [/D:device] [[drive:][path]filename[.. .]]
/D:device Specifies a print device.
I don't know where the copy con: lpt1: comes from, but you might be able to get out of that by pressing CTRL-Z.
On my NT2000 machine the following prints:
PRINT [/D:device] [[drive:][path]filename[..
/D:device Specifies a print device.
I don't know where the copy con: lpt1: comes from, but you might be able to get out of that by pressing CTRL-Z.
ASKER
C:\>print/?
C:\>copy con: lpt1:
^Z
1 file(s) copied.
C:\>Now is the time for all good men to come to the aid of their country.
'Now' is not recognized as an internal or external command,
operable program or batch file.
C:\>L
'L' is not recognized as an internal or external command,
operable program or batch file.
C:\>Z
'Z' is not recognized as an internal or external command,
operable program or batch file.
-------------------------- ---------- ---------- ---
As you can see all i did was print /? and the second line came by itself and got stuck, then when I pressed CTRL-Z it gave me
^Z
1 file(s) copied.
C:\>Now is the time for all good men to come to the aid of their country.
'Now' is not recognized as an internal or external command,
operable program or batch file.
C:\>L
'L' is not recognized as an internal or external command,
operable program or batch file.
C:\>Z
'Z' is not recognized as an internal or external command,
operable program or batch file.
-------------------------- ---------- ---------- ---
C:\>copy con: lpt1:
^Z
1 file(s) copied.
C:\>Now is the time for all good men to come to the aid of their country.
'Now' is not recognized as an internal or external command,
operable program or batch file.
C:\>L
'L' is not recognized as an internal or external command,
operable program or batch file.
C:\>Z
'Z' is not recognized as an internal or external command,
operable program or batch file.
--------------------------
As you can see all i did was print /? and the second line came by itself and got stuck, then when I pressed CTRL-Z it gave me
^Z
1 file(s) copied.
C:\>Now is the time for all good men to come to the aid of their country.
'Now' is not recognized as an internal or external command,
operable program or batch file.
C:\>L
'L' is not recognized as an internal or external command,
operable program or batch file.
C:\>Z
'Z' is not recognized as an internal or external command,
operable program or batch file.
--------------------------
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
DUDE, YOU ROCK!
That worked. Hats off to SteveGTR.
Now the only thing that bugs me is how can i define to print in Landscape vs. Portrait. By default it prints Portrait, but how do i define if I want to print Landscape. Plus what other options and features can I tweek while printing from dos?
That worked. Hats off to SteveGTR.
Now the only thing that bugs me is how can i define to print in Landscape vs. Portrait. By default it prints Portrait, but how do i define if I want to print Landscape. Plus what other options and features can I tweek while printing from dos?
You should really ask another question for that, but I know you are hurting for points :)
You can create a file that has the printer control sequence appropriate for your printer and do this:
%SystemRoot%\SYSTEM32\PRIN T.EXE /d:"\\bur-print-02\P10-HEA D HUNTER" c:\whereever\landscape.dat +c:\temp\c opy1.txt
You should also probably create a file that resets the printer so that you clean up afterwards. Then you would say:
%SystemRoot%\SYSTEM32\PRIN T.EXE /d:"\\bur-print-02\P10-HEA D HUNTER" c:\whereever\landscape.dat +c:\temp\c opy1.txt+c :\whereeve r\reset.da t
You can create a file that has the printer control sequence appropriate for your printer and do this:
%SystemRoot%\SYSTEM32\PRIN
You should also probably create a file that resets the printer so that you clean up afterwards. Then you would say:
%SystemRoot%\SYSTEM32\PRIN
print /d:\\printername\sharename
Good Luck,
Steve