OS2 World.Com Forum
2012.05.26, 06:59:37
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
OS2 World.Com Forum
>
OS/2 - Technical
>
Setup & Installation
>
Create New Program Object to Run Old Dos *.bat File
Pages: [
1
]
« previous
next »
Print
Author
Topic: Create New Program Object to Run Old Dos *.bat File (Read 2223 times)
John
Newbie
Posts: 41
Create New Program Object to Run Old Dos *.bat File
«
on:
2007.11.23, 12:37:09 »
Hi All,
I require some help creating a new program object to run an old Dos *.bat file. I've created the object from New Program template and set the path etc, but problem is when I click the object to run the program, Dos vdm starts and runs the *.bat file then when complete promptly closes. I'd like for the Dos vdm to remain open to select options etc from the file. The file in question is part of an old Dos Accounting package : PAD Accounting Release 1! Yes, still run it... works for our purposes as it's easy to edit customer profiles etc and keyboard shortcuts work like a charm. What's more is the fact that its so small considering that it was made to run on old XT hardware :-)
It's no train smash, but thought it easier and faster to set up a program object to launch this particular program from the desktop vs opening a separate Dos vdm and typing in the name of the file to launch it.
Any help much appreciated.
Regards,
John.
Logged
Radek
Full Member
Posts: 195
Re: Create New Program Object to Run Old Dos *.bat File
«
Reply #1 on:
2007.11.23, 15:39:24 »
It depends what you want exactly. If you don't want the session closed on completion of the .bat file then there is the "close window on exit" setting. You can also add 'command' at the end of the batch file. You can insert 'pause' statements in the batch file. If you are using 4DOS then you can make the batch file the startup file.
Logged
Criguada
Jr. Member
Posts: 84
Re: Create New Program Object to Run Old Dos *.bat File
«
Reply #2 on:
2007.11.26, 13:33:19 »
Hi John,
there is something going wrong here: if the program is correctly started, the window should stay open. Since the window closes, it means the program has finished (abnormally?).
To see what's going on, open the properties of the program object and deselect "close window on exit". This way the window will stay open even if the program exits, and you can see the error codes or whatever.
Bye
Cris
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
WebSite Information
-----------------------------
=> Article Discussions
=> Comments, Suggestions & Questions
-----------------------------
OS/2 - General
-----------------------------
=> Events
=> Marketplace
=> Polls
-----------------------------
OS/2 - Technical
-----------------------------
=> Applications
=> Communication
=> Games
=> Hardware
=> Internet
=> Mail-News
=> Multimedia
=> Networking
=> Programming
=> Setup & Installation
=> Utilities
=> Web applications
=> Storage
-----------------------------
OS/2 - SIGs
-----------------------------
=> Abandonware
=> CW-Multimedia
=> Doodle's ScreenSaver
=> Emulators
=> Hobbes Archive
=> ODIN
=> OS2 Petition
=> Rexx
=> Security
=> Socket Service
=> USB
=> XFree86
-----------------------------
OS2 World.Com Bounty System
-----------------------------
=> General Discussion
=> Open Bounties
=> Claimed Bounties
=> Development
-----------------------------
User Groups
-----------------------------
=> OS2 User Groups
=> OS2 User Group Denmark
=> OS2 User Group Germany
=> OS2 User Group Sweden
=> OS2 User Group Southern Europe
-----------------------------
Public Discussions
-----------------------------
=> General Advertisements
=> General Discussion
=> Off Topic discussions
Loading...