Old DOS-Based App & Parallel Printer

General software, Operating Systems, and Programming discussion.
Everything from software questions, OSes, simple HTML to scripting languages, Perl, PHP, Python, MySQL, VB, C++ etc.
Post Reply
Qui-Gon John
Advanced Member
Posts: 695
Joined: Sat Nov 04, 2000 12:00 am
Location: Spring Hill, FL

Old DOS-Based App & Parallel Printer

Post by Qui-Gon John »

I have been helping someone who uses an old DOS-based Calendar program, which runs in a DOS Window, his OS is W2000. The program is called CALENDAR and is setup to print to LPT1, connected using the parallel cable to an HP Laserjet II. The printer has been acting up and he'd like to change the program to be able to print to a different printer. But I looked at the printer settings in the program, and the only choices are LPT1, LPT2 or LPT3 or you can also specify "Device or File". But I could not get it to print to his default printer in Windows, a USB connected Brother.

Anyone know how this could be done, to get it to print to the default printer that Windows recognizes?

He has used this program for years and is very reluctant to switch to something newer.

Thanks!!!
User avatar
greEd
Posts: 807
Joined: Wed May 09, 2001 12:00 am
Location: Maryland

Post by greEd »

You could try sharing the USB printer then using the old command:

Code: Select all

 net use LPT1: \\computer\sharename /persistent:yes
Gawd that command brings back some chilling memories ..... :)
"I'm doing a (free) operating system (just a hobby, won't be big and professional...) for AT clones... It's not portable and it probably [won't ever] support anything other than AT hard disks, as thats all I have :-(." --Posted on Usenet August 1991 by Linus Trovalds
http://www.computerglitch.net
curiosity builds security | dd if=/dev/zero of=/dev/hda bs=512 count=100
EOF
Qui-Gon John
Advanced Member
Posts: 695
Joined: Sat Nov 04, 2000 12:00 am
Location: Spring Hill, FL

Post by Qui-Gon John »

Thanks, hadn't thought about that angle. And the printer is already shared, so that makes it even easier.

Would I have to do anything to the real LPT1 or would that command supersede any prior setting to the actual parallel port?
User avatar
Shinobi
Senior Member
Posts: 4455
Joined: Sat Jan 06, 2001 12:00 am
Location: South Carolina

Post by Shinobi »

greEd wrote:You could try sharing the USB printer then using the old command:

Code: Select all

 net use LPT1: \\computer\sharename /persistent:yes
Gawd that command brings back some chilling memories ..... :)
You can still have a MS Dos Server running :)
It will show up as a "MS Dos - Peer Network" in Windows 2000 :nod:

It's good to see you still around greEd
_______________________________________________
Vendor neutral certified in IT Project Management, IT Security, Cisco Networking, Cisco Security, Wide Area Networks, IPv6, IT Hardware, Unix, Linux, and Windows server administration
[SIGPIC][/SIGPIC] :thumb:
CableDude
SG VIP
Posts: 26801
Joined: Sat Jun 02, 2001 12:00 pm

Post by CableDude »

Paging Norm
User avatar
YeOldeStonecat
SG VIP
Posts: 51171
Joined: Mon Jan 15, 2001 12:00 pm
Location: Somewhere along the shoreline in New England

Post by YeOldeStonecat »

Qui-Gon John wrote:Thanks, hadn't thought about that angle. And the printer is already shared, so that makes it even easier.

Would I have to do anything to the real LPT1 or would that command supersede any prior setting to the actual parallel port?
The "net use LTP1" command will load last..and over ride the local physical port.

To kill it if you decide to switch to local....type command again..but instead of the persistant arguement..use /del or /delete or /d (I think all 3x worked in 2K)...net use ltp1: /delete
MORNING WOOD Lumber Company
Guinness for Strength!!!
User avatar
greEd
Posts: 807
Joined: Wed May 09, 2001 12:00 am
Location: Maryland

Post by greEd »

Shinobi wrote:You can still have a MS Dos Server running :)
It will show up as a "MS Dos - Peer Network" in Windows 2000 :nod:

It's good to see you still around greEd
Hey Shinobi :)

I still lurk around here in my spare time. Work, new baby and the wife occupy everything else. Stay "Happy" :thumb:
"I'm doing a (free) operating system (just a hobby, won't be big and professional...) for AT clones... It's not portable and it probably [won't ever] support anything other than AT hard disks, as thats all I have :-(." --Posted on Usenet August 1991 by Linus Trovalds
http://www.computerglitch.net
curiosity builds security | dd if=/dev/zero of=/dev/hda bs=512 count=100
EOF
Qui-Gon John
Advanced Member
Posts: 695
Joined: Sat Nov 04, 2000 12:00 am
Location: Spring Hill, FL

Post by Qui-Gon John »

This worked!!!

Although only for 1 shared printer. He has a Brother and an HP as USB Shared Printers. I used the command for the Brother and the print went there but was blank, (I imagine because the old DOS App's HP2's drivers were too different).

Then I tried it to the HP Shared Printer (a Photo-Smart) and it worked fine.

Thanks!!!
User avatar
YARDofSTUF
Posts: 70006
Joined: Sat Nov 11, 2000 12:00 am
Location: USA

Post by YARDofSTUF »

At some point dosbox may do printing as well.
Qui-Gon John
Advanced Member
Posts: 695
Joined: Sat Nov 04, 2000 12:00 am
Location: Spring Hill, FL

Post by Qui-Gon John »

Hi all, another problem now regarding this same Old DOS-Based Calendar program. This guy apparently lost any old copies of the data file and his data file got corrupted. I have saved the corrupted file, in the meantime we created a new data file, but he's begging to get the old file repaired. He says he has a lot of info in there he can't duplicate elsewise. I've been telling him for years to switch to using Outlook's calendar, (I successfully moved him to Outlook from IncrediMail a few years ago and have been trying to convince him his life would be much easier to just use Outlook's calendar, since he's already familiar with Outlook from working with email. But so far no luck. Then when his file got corrupted I really tried to tell him, it's time now to switch. But he still wanted me to see if I can find any way to repair the old data file. So if anyone has any idea, please let me know.
User avatar
YeOldeStonecat
SG VIP
Posts: 51171
Joined: Mon Jan 15, 2001 12:00 pm
Location: Somewhere along the shoreline in New England

Post by YeOldeStonecat »

What was that data file hosted on? Just the local hard drive? Which OS?
Certain database software will have their own native "utility" to repair/optimize" the database...even though this DOS app is ancient, is the software company still around to reach out to their support?
MORNING WOOD Lumber Company
Guinness for Strength!!!
Qui-Gon John
Advanced Member
Posts: 695
Joined: Sat Nov 04, 2000 12:00 am
Location: Spring Hill, FL

Post by Qui-Gon John »

Thanks for the reply. I personally think he's out of luck. I looked around in the program and cannot even find a company name to see if they are still around. But when you run it, it makes (if not already there) a file called calendar.fil. In that is all the data, as well as user settings such as colors, printer selected, etc. His original one got corrupt and only one little piece of data showed within the calendar. I copied that file to a safe location, re-opened the program and a new file was created, and he could do everything, of course none of his data was in there.
User avatar
Shinobi
Senior Member
Posts: 4455
Joined: Sat Jan 06, 2001 12:00 am
Location: South Carolina

Post by Shinobi »

Qui-Gon John wrote:Thanks for the reply. I personally think he's out of luck. I looked around in the program and cannot even find a company name to see if they are still around. But when you run it, it makes (if not already there) a file called calendar.fil. In that is all the data, as well as user settings such as colors, printer selected, etc. His original one got corrupt and only one little piece of data showed within the calendar. I copied that file to a safe location, re-opened the program and a new file was created, and he could do everything, of course none of his data was in there.
Hey Hi.. its me again Shinobi your guide in the realm of DOS Dungeons and Dragons :) Try this... make a 2nd copy of the for editing. Change that file as a .txt file, open it up. See if you salvage any contact data from the file. May be possible to get something. OR... copy all of the data and paste it into another .txt file. Save it as a .txt file, then rename the .txt file as what ever the old dos calendar software file extension again.
_______________________________________________
Vendor neutral certified in IT Project Management, IT Security, Cisco Networking, Cisco Security, Wide Area Networks, IPv6, IT Hardware, Unix, Linux, and Windows server administration
[SIGPIC][/SIGPIC] :thumb:
Post Reply