Name/Version: Diversion v1.0
1st Release : 22.04.02
Last Update : First Release

Short Description
Diverts an application to another one.

Reason for the Development
I found several patches to assign NotePad to WordPad.
Why should the user not be able to create his own patch?
Maybe he wants to open his favorite editor instead of WordPad?
The user can assign any exe-file he wants (I hope).

A 2nd use of Diversion is to start multiple programs.
See example 2 under Instructions.

I am not sure who will use it or need it.
But - I think - it was a nice idea and I spend only 15 minutes
to make it runable (and 1 hour for the description).

Appearance
Language ..........: No
User Interface/Form: No
Input  by Interface: No
Input  by Command$ : Supported
Input  by Clipboard: No
Input  by Drag&Drop: No
Input  from Disk ..: Required (-.dat)
Input, Other ......: No
Output by Interface: No
Output to Clipboard: No
Output to Disk ....: No
Output by Drag&Drop: No
Output, Other .....: program start(s) only

More Requirements
No

Instructions

Diversion.exe opens the file(s) which is (are) defined in Diversion.dat.
Additional it sets the DOS-path (CHDIR) to the program folder
and it supports a parameter ("diversion.exe c:\My File.txt").
It can handle spaces in the parameter (as shown in the example).

How to use it? The best way to explain is to list an example:
We want assign NotePad to WordPad now:
(I know there are other possibilities in this case like changing default app.)

1. Copy "Diversion.exe" and "Diversion.dat" into the Windows main folder
2. Open "Diversion.dat" with an editor and change the path to "c:\windows\write.exe"
3. Rename "NotePad.exe" to "NotePad_.exe" (example)
4. Rename "Diversion.exe" to "notepad.exe"
5. Rename "Diversion.dat" to "notepad.dat"

Note! "exe" and "dat" must always have the same name!
Otherwise Diversion will not find its dat file.

Make the test:
Double-click the file you are just reading now.
It should be shown in WordPad instead of NotePad now
(assumed NotePad is your default text viewer fixed in the Windows settings).

This is an example only. You can use Diversion for any other apps like
browsers etc.

2nd use: Multiple program starts, example 2:

Add a 2nd (or third...) path to diversion.dat.
The text could be shown like this:

c:\windows\calc.exe
c:\windows\write.exe

When you start Diversion.exe, both apps will be started.
Of course, Diversion.exe and -.dat can also be renamed in this case.

{End of instructions}

Limitations
Diversion is designed for exe files only. That meens it will not work
to rename "Diversion.exe" to "sample.dll".

Future Planning
No

Updates
1.0.   22.04.02 > New: First Release
