ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³Documentation of allowed patches in ACD version 2.10, dated Aug. 1, 1992 ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ Some people hate to lose precious environment space, and that's why you are allowed to patch ACD.EXE with your preferred default values. The easiest way to to do so is to use the ACD_CFG program included with ACD. The *.P22 files will probably not be updated in next releases, whereas ACD_CFG will always represent ALL 'current' configuration possibilities. So, the environment variables "ACD_COLOR" and "ACD" are then almost obsolete. Below is a list of patches you are allowed to make. However, you are NOT allowed to redistribute a patched version, but only the original version, with the complete documentation. The easiest way to make the patches is to use PATCH22 from Jurgen A. Doornik (current version: P22V12.zip), which can also be obtained from the SIMTEL20 archives, and is also free of charge. patch nr.³ file ³ description ÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ 1 ³ acd_col .p22 ³ default colours (ACD_COLOR) 2 ³ acd_par0.p22 ³ functionality of ACD without parameters (/0) 3 ³ acd_hist.p22 ³ scrollback history size 4 ³ acd_know.p22 ³ unknown directory -> update acd.idx (/u) 5 ³ acd_drv .p22 ³ test inactive drives (/i) 6 ³ acd_graf.p22 ³ graphical display (/g) 7 ³ acd_lite.p22 ³ highlight selection line (/l) 8 ³ acd_cur .p22 ³ current drive selection (/c) 9 ³ acd_menu.p22 ³ menu choices (/m) 10 ³ acd_win .p22 ³ maximum size of pop-up window 11 ³ acd_exct.p22 ³ exact match (/e) 12 ³ acd_srnk.p22 ³ shrink searchstring (/s) 13 ³ acd_exec.p22 ³ Execute program with ALT-E from pop-up window PATCH 1: default colours (ACD_COLOR) Instead of setting the default colors by the environment variable ACD_COLOR, you can apply the patch below to change the colors ACD uses. By using the following table: Dark Colors º (Foreground & º Light Colors Background) Dec Hex º (Foreground) Dec Hex ÍÍÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍÍÍÎÍÍÍÍÍÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍ Black ³ 0 (00) º DarkGray ³ 8 (08) Blue ³ 1 (01) º LightBlue ³ 9 (09) Green ³ 2 (02) º LightGreen ³ 10 (0A) Cyan ³ 3 (03) º LightCyan ³ 11 (0B) Red ³ 4 (04) º LightRed ³ 12 (0C) Magenta ³ 5 (05) º LightMagenta ³ 13 (0D) Brown ³ 6 (06) º Yellow ³ 14 (0E) LightGray ³ 7 (07) º White ³ 15 (0F) the command patch22 acd.exe ?\h2A2E2A?\h2A2E2A....? will patch the default colors of ACD in the colors you prefer: the four dots must be replaced by the HEX values of the BackGround Color and ForeGround Color. For example: patch22 acd.exe ?\h2A2E2A?\h2A2E2A010E? would give you by default yellow characters on blue background, without using any environment space. You can also modify ACD_COL.P22 to suit your needs and call: patch22 @acd_col.p22 Of course, you can use Norton utilities, or PCTOOLS as well to change the colors. The searchstring to be used is HEX 2A 2E 2A. The two bytes to be changed are positioned after this searchstring (00 07). PATCH 2: functionality of ACD without parameters (/0) By default, ACD without parameters acts just as CD without parameters: show current directory name. This patch changes the functionality of ACD without parameters: patch22 acd.exe +5?\h2A2E2A?*? which changes the third byte after the searchstring (hex 20). Now ACD without parameters is equivalent to ACD *, just like NCD. Another patch to change the function of ACD without parameters is: patch22 acd.exe +5?\h2A2E2A?=? which, again, changes the third byte after the searchstring (hex 20). Now ACD without parameters is equivalent to ACD =, so by default the scrollback history will be used. You can also modify ACD_PAR0.P22 to suit your needs and call: patch22 @acd_par0.p22 PATCH 3: scrollback history size The command patch22 acd.exe +6?\h2A2E2A?\h00? changes the size of the scrollback history in a historysize of 0. The command patch22 acd.exe +6?\h2A2E2A?\h20? restores the patch in the original ACD historysize of 20. You can also modify ACD_hist.P22 to suit your needs and call: patch22 @acd_hist.p22 PATCH 4: unknown directory -> update acd.idx (/u) The command patch22 acd.exe +7?\h2A2E2A?\h00? ensures that ACD.IDX database will not be updated when ACD encounters an unknown sub-directory with a known parent. See also the /u option. The command patch22 acd.exe +7?\h2A2E2A?\h02? ensures that ACD.IDX database will be updated when ACD encounters an unknown sub-directory with a known parent, and also ALL subdirectories will be added. For the values \h03 and \h04: see /u option. The command patch22 acd.exe +7?\h2A2E2A?\h01? restores the patch in the original ACD defaultvalue. You can also modify ACD_know.P22 to suit your needs and call: patch22 @acd_know.p22 PATCH 5: test inactive drives (/i) The command patch22 acd.exe +8?\h2A2E2A?\h01? ensures that by default the drives will not be tested for their existence: all information will be displayed. The /i option will then get the opposite meaning. The command patch22 acd.exe +8?\h2A2E2A?\h00? restores the patch in the original ACD defaultvalue. You can also modify ACD_drv.P22 to suit your needs and call: patch22 @acd_drv.p22 PATCH 6: graphical display (/g) The command patch22 acd.exe +9?\h2A2E2A?\h00? will make the non-graphical display as default. The /g option will then get the opposite meaning. The command patch22 acd.exe +9?\h2A2E2A?\h01? restores the patch in the original ACD defaultvalue. You can also modify ACD_graf.P22 to suit your needs and call: patch22 @acd_graf.p22 PATCH 7: highlight selection line (/l) The command patch22 acd.exe +10?\h2A2E2A?\h00? will make the highlight only affect the last subdirectory in the pop-up window instead of the complete line. The /l option will then get the opposite meaning. The command patch22 acd.exe +10?\h2A2E2A?\h01? restores the patch in the original ACD defaultvalue. You can also modify ACD_lite.P22 to suit your needs and call: patch22 @acd_lite.p22 PATCH 8: current drive selection (/c) The command patch22 acd.exe +11?\h2A2E2A?\h01? will make the /c option default: use the information on the current drive only. The /c option used from the commandline will then get the opposite meaning. The command patch22 acd.exe +11?\h2A2E2A?\h00? restores the patch in the original ACD defaultvalue. You can also modify ACD_lite.P22 to suit your needs and call: patch22 @acd_cur.p22 PATCH 9: menu choices (/m) The command patch22 acd.exe +12?\h2A2E2A?\h00? will put the menu choices OFF by default. The /m option used from the commandline will then get the opposite meaning. The command patch22 acd.exe +12?\h2A2E2A?\h01? restores the patch in the original ACD defaultvalue. You can also modify ACD_menu.P22 to suit your needs and call: patch22 @acd_menu.p22 PATCH 10: maximum size of pop-up window The command patch22 acd.exe +13\h2A2E2A?\h10? changes the maximum size of the pop-up window in 16 (Hex 10). The command patch22 acd.exe +13?\h2A2E2A?\hFF? which changes the eleventh byte after the searchstring in hex FF (the original ACD default value), which will yield a pop-up window based on the number of lines of your screen: a 43 line videomode, for example, would allow for a 38 line window. In general: the maximum number of lines (directory entries) in the window is equal to min(lines in mode-5, patched maximumsize) You can also modify ACD_win.P22 to suit your needs and call: patch22 @acd_win.p22 PATCH 11: exact match (/e) The command patch22 acd.exe +14?\h2A2E2A?\h01? will let ACD switch to a directory if exactly one directory name is found in the ACD database with this exact name. The /e option will get the opposite meaning. The command patch22 acd.exe +14?\h2A2E2A?\h00? will restore the original ACD default value. You can also modify ACD_exct.P22 to suit your needs and call: patch22 @acd_exct.p22 PATCH 12: shrink searchstring (/s) The command patch22 acd.exe +16?\h2A2E2A?\h00? will stop ACD from trying to guess what is meant if no match is found. The /s option will get the opposite meaning. The command patch22 acd.exe +16?\h2A2E2A?\h01? will restore the original ACD default value. You can also modify ACD_srnk.P22 to suit your needs and call: patch22 @acd_srnk.p22 PATCH 13: execute program with ALT-E Below follow some examples for letting ALT-E execute a program or command from the ACD popup-window. The highlighted directoryname can be included in the parameters, by specifying %dir% in the "parameterpatch". Example 1: If you want to delete all files in the highlighted directory: Call command.com .... patch22 acd.exe -49?\h2A2E2A?command.com ? 123456789012 (at most 12 characters for a valid DOS name) If you are using 4DOS, you can use: patch22 acd.exe -49?\h2A2E2A?4dos.com ? 123456789012 .... and let command.com/4dos.com delete all files in this directory! patch22 acd.exe -35?\h2A2E2A?/c del %dir% ? 12345678901234567890123456789012 (32 characters for options) So, the complete command is: COMMAND.COM /C DEL %dir% or 4DOS.COM /C DEL %dir% As said above, %dir% has a special meaning: use currently highlighted directory as parameter. E.g. if the highlighted line is currently "c:\archives\temp", then ALT-E executes the command COMMAND.COM /C DEL C:\ARCHIVES\TEMP which deletes (after confirmation) ALL files from this directory! Example 2: To call Directory Freedom (the default value), or 4FILES, you can enter either patch22 acd.exe -49?\h2A2E2A?DF.COM ? or patch22 acd.exe -49?\h2A2E2A?4F.COM ? followed by patch22 acd.exe -35?\h2A2E2A?%dir% ? So, the complete command is: DF.COM %dir% or 4F.COM %dir% It is assumed that the program names (e.g. COMMAND.COM and DF.COM) can be found in the PATH statement; otherwise, nothing happens.