[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1109
  • Last Modified:

Dataease printing problem

I have a pc on a network that has trouble printing to a shared printer in DOS. The application is Dataease using MS-DOS. The operating system is Windows XP. I have shared a printer from another workstation to my workstation. The printer is an HP Laserjet 1100. It prints fine using any Windows Applications. Unfortunately for me I need to print from DOS with this Dataease version. There is a batch command that maps directly to the shared printer in question. Can anyone help?
0
andy59z
Asked:
andy59z
  • 8
  • 7
1 Solution
 
SteveGTRCommented:
You can try doing this prior to running the Dataease application:

net use LPT1: \\printername\printershare

Good Luck,
Steve
0
 
andy59zAuthor Commented:
This statement is included in the batch executable when i initiate Dataease. I've checked to make sure it's pointing to the printer correctly. Any other thoughts?
0
 
SteveGTRCommented:
Can you elaborate on this statement?

"I have a pc on a network that has trouble printing to a shared printer in DOS."

I understand that the trouble is associated with the Dataease application. My question is what are the toubles?
0
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

 
andy59zAuthor Commented:
I'm printing to a pc that has a printer directly connected to it. It shares the printer as HP laserjet 1100. I'm executing a batch command to run dataease and also connect to the printer. It goes into dataease no problem but doesn't find the printer. The workstation prints fine using Windows but doesn't print using DOS.
0
 
SteveGTRCommented:
Could be that dataease only recognizes LPT1 and LPT2. Can you post your batch file that connects to the printer and runs dataease?
0
 
andy59zAuthor Commented:
The folowing is a batch file and the comands it contains:

@ECHO OFF
SET DENAME=DESD
SET DEPATH=M:\
SET VMCPATH = C:\NETAPPS\BEBEFIT.VMC
NET USE LPT1  \\HR-13\HP Laserjet 1100
M:
DE16M DEDATA
NET USE LPT1 /DELETE
0
 
SteveGTRCommented:
Can you open up a command box and issue the net use command like so:

NET USE LPT1  \\HR-13\HP Laserjet 1100

Does it work?

When you type:

net use

Does it say something like this:

Status       Local     Remote                    Network
-------------------------------------------------------------------------------
OK      LPT1      \\HR-13\HP Laserjet 1100      Microsoft Windows Network

My concern is the spaces in the share name. I'm wondering if you shouldn't double-quote the name like so:

NET USE LPT1  "\\HR-13\HP Laserjet 1100"

If everthing does work without the quotes. What happens when you do the following?

dir >lpt1

Does it print?
0
 
andy59zAuthor Commented:
when I enter the command line dir >lpt1 in DOS it just hangs
0
 
andy59zAuthor Commented:
when I enter the command line dir >lpt1 in DOS it gives the following:


The system can't write to the specified device
0
 
SteveGTRCommented:
How about my other questions above regarding net use? Also, which does it do? Does it hang or does it issur the error message above?
0
 
andy59zAuthor Commented:
Thank you for your patience. When i issue the command the following is displayed

C:\>NET USE LPT1  \\HR-13\HP Laserjet 1100
The syntax of this command is:


NET USE
[devicename | *] [\\computername\sharename[\volume] [password | *]]
        [/USER:[domainname\]username]
        [/USER:[dotted domain name\]username]
        [/USER:[username@dotted domain name]
        [/SMARTCARD]
        [/SAVECRED]
        [[/DELETE] | [/PERSISTENT:{YES | NO}]]

NET USE {devicename | *} [password | *] /HOME

NET USE [/PERSISTENT:{YES | NO}]



C:\>
0
 
SteveGTRCommented:
Use double quotes as I suggested above:

NET USE LPT1  "\\HR-13\HP Laserjet 1100"
0
 
andy59zAuthor Commented:
The solution is that the shared name can't have any spaces within the DOS command

\\HR-13\HP1100 is the correct command
0
 
andy59zAuthor Commented:
Thanks 4 your help stevegtr. I would like to split the points with you and close out. How can i do that?
0
 
SteveGTRCommented:
Split points with me?

I'm the only one who has been working on the problem. You don't get to give yourself points. My recommendation is to accept my answer and grade it as an A.

Thanks :)

For more information on EE Guidelines by clicking on Help in the upper right corner.

http://www.experts-exchange.com/help.jsp
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

  • 8
  • 7
Tackle projects and never again get stuck behind a technical roadblock.
Join Now