home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Professional
/
OS2PRO194.ISO
/
os2
/
sysutils
/
shiftrun
/
shiftrun.doc
< prev
next >
Wrap
Text File
|
1994-02-04
|
8KB
|
149 lines
╔═══════════════════════════════════════════════════╗
║ ║
║ S H I F T R U N ║
║ ║
║ Version 1.3 ║
║ March 24, 1992 ║
║ ║
║ Michael Harris - IBM Cary, NC. ║
║ ║
╚═══════════════════════════════════════════════════╝
-----------------------------/ Overview /--------------------------------
ShiftRun is a utility that enables a user to optionally start any OS/2 Full
Screen or Windowed program within the same OS/2 session. "Optionally"
means that the user can choose to start a program by pressing and holding
either SHIFT key before the specified timeout expires. If he/she does not
press the SHIFT key before the timeout expires, ShiftRun will cancel itself
and allow its calling process to continue.
---------------------------/ Requirements /------------------------------
ShiftRun requires OS/2 Version 2.0 or higher. ShiftRun will not function
properly if you are running the pre-installed version of OS/2 2.0.1.
-------------------/ Using ShiftRun in CONFIG.SYS /----------------------
One of the most useful ways you can use this utility is to put it in your
CONFIG.SYS enabling you to start an OS/2 Full Screen Command Prompt before
Presentation Manager loads. When you do this, you will be able to recover
from many OS/2 problems without having to boot from diskette.
You can:
- Edit your CONFIG.SYS file (requires a non-PM text editor)
(Note that CONFIG.SYS will have already been processed.
any changes to CONFIG.SYS will not take effect until
after the user reboots again.)
- Copy, rename, or delete any files that are not in use
- Install OS/2 patches
(Some patches may not install because the DLL's are in use.
In this case, you must boot from diskette.)
- Run most full screen programs
You cannot:
- Run CHKDSK /F to fixup the OS/2 partition of your harddisk
- Install OS/2 patches which modify files that are in use
- Run Presentation Manager programs
- Run Full-Screen programs which require multiple sessions.
(Such as OS/2 Lan Requester)
To add ShiftRun to your CONFIG.SYS, add the following line:
(This example assumes that SHIFTRUN.EXE is in D:\TOOLS.)
CALL=D:\TOOLS\SHIFTRUN.EXE Timeout ProgramName "Program Parameters"
Where: Timeout is the timeout in seconds
ProgramName is the name of the program to run
"Program Parameters" are the program parameters (If you only have
one, the quotes are not necessary.)
You can put the CALL= statement almost anywhere in CONFIG.SYS because CALL=
statements are not process until after all SET, LIBPATH, and DEVICE have
been processed. If, however, you have a problem with ShiftRun, try moving
the CALL= line to the beginning of CONFIG.SYS.
-----------------------------/ Examples /--------------------------------
If you type SHIFTRUN without any parameters, you will get the help screen:
┌──────────────────────────────────────────────────────────────────────┐
│ ShiftRun - Version 1.3 │
│ (c) Copyright IBM Corporation 1992, 1993 - All rights reserved. │
│ │
│ Syntax: ShiftRun Timeout Program.Exe "Program Parameters" │
│ │
│ Examples: │
│ ShiftRun 5 CMD.EXE /k │
│ ShiftRun 2 CMD.EXE "/C FOO.CMD" │
│ ShiftRun 5 T.EXE C:\CONFIG.SYS │
│ │
│ NOTE: The /K in the first example is necessary to avoid the error: │
│ SYS1034: The system cannot find the │
│ command processor in the path specified. │
└──────────────────────────────────────────────────────────────────────┘
Here is what you will see if you use the line: SHIFTRUN 5 CMD.EXE /K
┌──────────────────────────────────────────────────────────────────────┐
│ ShiftRun - Version 1.3 │
│ (c) Copyright IBM Corporation 1992, 1993 - All rights reserved. │
│ │
│ Before the timer reaches 0, press and hold: │
│ SHIFT - to start CMD.EXE /K │
│ ESC - to cancel ShiftRun │
└──────────────────────────────────────────────────────────────────────┘
Seconds left: 5
The number to the right of "Seconds left:" will count down to 0 beginning
with the timeout you specify on the command line. If the you do not press
a key before the timeout, you will see this:
┌──────────────────────────────────────────────────────────────────────┐
│ ShiftRun - Version 1.3 │
│ (c) Copyright IBM Corporation 1992, 1993 - All rights reserved. │
│ │
│ Before the timer reaches 0, press and hold: │
│ SHIFT - to start CMD.EXE /K │
│ ESC - to cancel ShiftRun │
└──────────────────────────────────────────────────────────────────────┘
Seconds left: 0
Shift key was not pressed.
and the calling process will continue. The calling process will most
likely be CONFIG.SYS, but it could also be an OS/2 or REXX batch file.
If you press the ESC key before the timeout, you will see this:
┌──────────────────────────────────────────────────────────────────────┐
│ ShiftRun - Version 1.3 │
│ (c) Copyright IBM Corporation 1992, 1993 - All rights reserved. │
│ │
│ Before the timer reaches 0, press and hold: │
│ SHIFT - to start CMD.EXE /K │
│ ESC - to cancel ShiftRun │
└──────────────────────────────────────────────────────────────────────┘
Seconds left: 2
ShiftRun cancelled.
If you press and hold a SHIFT key before the timeout, you will see this:
┌──────────────────────────────────────────────────────────────────────┐
│ ShiftRun - Version 1.3 │
│ (c) Copyright IBM Corporation 1992, 1993 - All rights reserved. │
│ │
│ Before the timer reaches 0, press and hold: │
│ SHIFT - to start CMD.EXE /K │
│ ESC - to cancel ShiftRun │
└──────────────────────────────────────────────────────────────────────┘
When you exit CMD.EXE,
the process that called ShiftRun will continue.