DirWork V1.12 - Chris Hames 17/8/90. All rights Reserved. ---------------------------------------------------------- DW Size 29400 bytes Need to get around your directories fast and simply. Force yourself to read fully this doc file and I think you will find this program of great use. What makes DirWork better than the rest ? VERY Configurable. Buttons/Options/WindowSize can be modified and the DW executable modified to have these values. Fast and Smooth Floppy Dirs! Getting a directory off a floppy is usually up to 2 times faster. And your drive doesn't grind back and forward anywhere near as much as normal. Size. At less than 30K uncompressed in makes mince meat of most of those huge memory hungry utils. Detaches. So when you type DW from CLI you can still use your CLI as if nothing happened. No need to Run! Sleep. Can be put to sleep so it disappears completely until you press left Ctrl-Shift-Alt-D. Also can be started in sleep mode so "DW -s" in your startup-sequence will have it there for when you want it. Intelligent. Press the right mouse button on the filename of a IFF picture and it will be automatically displayed. Right button on a text file and it will type or edit it. As well as many other instant actions on different types of files. A excellent show built in that loads in the next picture while your looking at the last. You can of course set up a button to use your own show utility. This program is SHAREWARE so please support the work that has gone into it. The suggested contribution of $20 will get you a disk containing the next version of this program. Please send the contribution & any ideas etc to:- C Hames | Snail: 6 Pamela Crt |Internet(for 1990): Blackburn South | ins778u@vax4.cc.monash.edu.au VIC 3130 |BBS's: Australia | A few Amiga ones in Melbourne And don't forget to include the version number you have! PS If any software company is reading this! Want a 19 year old C/Assembler programmer who is getting bored out of his mind in computer science at Uni. This program may be copied as long as it is accompanied by this doc file both unaltered & no money is charged(except for a reasonable copying fee). All use of this program is at your own risk & I assume no responsibility for any problems that occur. Future Improvements:- More configurable. ie Screens/ButtonPositions etc Search to show area around hits. Much better Type/Htype. Virus BootBlock Check(just find non-standard ones). Faster. History:- 27/ 1/90 1.00 First Release. 5/ 2/90 1.01 VMK updated to v27. Stopped title bar flashing. 12/ 2/90 1.02 Icon. Faster. Smaller. Now uses less memory(5K) if destination display is not used. 15/ 2/90 1.03 Detaches from CLI. Some Workbench problems fixed. A Show bug fixed. 22/ 2/90 1.04 CD bug fixed. Volumes button added. Dir buttons and options can be modified and saved. VMK can now automatically be executed every 10 secs. 14/ 7/90 1.10 Heaps of little improvements. Copy/Delete/Move Dirs. Now VERY configurable buttons. Sleep. Window sizing. HxType/Type/Search Esc works anytime now. Rename/ makdir/copy/move/delete add or remove from both filelists where appropriate. So many more changes that I am calling it 1.10 ! 30/ 7/90 1.11 Bug fixed when getting dirs with spaces in them. 17/ 8/90 1.12 Rare problem getting dirs with spaces at end. Instructions:- ------------ The window display +-------------------------------------------------------+ |+| Title Bar - Chip & total memory available | | | |-------------------------------------------------------| | Source File List |S| Name & Bytes Free | | |l| SOURCE DIRECTORY | | Filename p size |i| | | ^ |d| +++ +++ +++ +++ +++ | | p if Protected |e| +++ + Buttons + +++ | | | | +++ +++ +++ +++ +++ | | |G| +++ +++ +++ +++ +++ | | & Destination File |a| | | list if selected |d| DESTINATION DIRECTORY | |------------------------- Name & Bytes Free | |Errors and other messages | +-------------------------------------------------------+ FileList(s) Press the left mouse button to select/deselect a file or directory name. Right mouse button on a directory reads in that directory. Right Mouse Button on a file will try to recognize the file and automatically do something with the file(eg With default settings the Right mouse button on a text file will type it & on a picture file will show it. If it doesn't it will HxType the file.) Use the slide gadget to see files that are not displayed. Buttons The main idea is to press the left mouse button if you are referring to the source and the right mouse button for the destination. (eg Left button on DF0: will get the directory from DF0: and put it in the source file list, but right button on DF0: will get the directory DF0: and put it in the destination file list) Below is a description of what the buttons will do when the default setup is used. If a button has an "*" next to the desciption then pressing the right mouse button on a file that is relevent to the operation of the button will automatically perform the button function on the file(eg right mouse button pressed on a a picture file will perform show and display the picture). You can modify button functions to do something completely different if you want. The text in quotes refers to configuration information which can be ignored until later. DF0: DF1: RAM: DH0: etc Just press these to get the directory of this name. " DF0: ,D00,DF0:" where the DF0: could be RAM: etc Sleep Puts the task to sleep until you press the four left keys Ctrl-Shift-Alt-D. ie The window disappears as if you quit but the program is still there waiting until you press the keys. So you don't have to load DirWork all the time. DirWork starts in Sleep mode if you type DW -s instead of the usual DW when you run it from CLI. "Sleep ,S00," Volumes Displays all things assigned ie C: LIBS: SYS: etc Just press a button on one of them to enter the directory. "Volums,U00," Getdir Gets the directory & info(Bytes Free and name). "GetDir,g0D," AllFil Select all files. "AllFil,j0A,F" ClrAll Unselect all. "ClrAll,l0B," Bytes Display the total number of bytes/files selected. "Bytes ,b0F," Swap Swaps the source and destination displays. " Swap ,W00," Parent Gets the parent of the directory. eg DF0:t/r becomes DF0:t "Parent,P00," Root Gets the root of the directory. eg DF0:t/r becomes DF0: " Root ,R00," Info Updates the info(bytes Free and name). " Info ,I00," Copy Copys files/dirs from one dir to another. " Copy ,c0B," Move Moves files/dirs from one dir to another. " Move ,m0B," Delete Delete files/dirs. You are prompted before non empty dirs are deleted for confirmation. "Delete,d0B," Print Puts selected files text to the printer. "Print ,i0F," Rename Rename files. Edit names in the prompt. "Rename,r0B," MakeDir Make a new directory. Enter name in prompt. "MakDir,M00," Protect Change protection of a file/dir. "Protec,k0B," CD Makes the dir the current directory. " CD ,C00," * Type Displays a text file to a window. Esc quits anytime. " Type ,tTF," * HxType Displays a file in hexadecimal to a window. "HxType,hBF," Instant This performs as if you pressed the right mouse button on all the selected files. It will perform a relevent button on the file if it finds one otherwise it will assume the file is just binary and HxType it. "Instnt,n0F," * Show Shows IFF files. Loads in the next pic while the last is being displayed to save a lot of time. Use Cursor keys to scroll around a picture bigger than the screen. Use the left mouse mouse button or press a key to go to next. If low on memory select one file at a time to display. " Show ,sPF," * PlaySS Plays any file as a Sampled sound at 10000samples/sec. RMB on a 8SVX sound file will use call this routine. "PlaySS,pSF," Search Search files for text that you are prompted for. The prompt has a UpperCase!=LowerCase option. It will tell you at want offsets in the file the text is found. "Search,f0F," VMK My MEMORY virus detector/killer. For a simple check to see that your memory is virus free. Does checks of many memory locations etc that are used by viruses. If you get a alert use a good disk virus killer to clear up the problem. See the seperate program VMK v27 for docs. " VMK ,V00," The following buttons require you to have a external program and/or run in your c: or similar directory. * Most Displays files compressed for viewing with Most copyright Richard Wynn. " Most ,eMF,Most" Edit Edit selected files. Requires a editor named E in a path such as c:. " Edit ,e0F,Run >NIL: E" NewZAP NewZAP selected files. Requires Newzap in a path such as c:. NewZAP is a file editor © John Hodgson. "NewZAP,e0F,Run >NIL: NewZAP" Run Run selected files. You will be prompted for optional arguments. eg if you selected the file Diskcopy you might want to enter "DF0: to DF1:". " Run ,u0F," Command Enter a command in the prompt as if you where in a CLI window. This press a key when output is finished. "Comand,O00,W" * ARC L ZOO L LHArc L Lists the compressed files for these compressors commonly used in modem work. Requires ARC or ZOO or LHARC to be in an current path such as c:. "ARC L ,vAF,ARC v" "ZOO L ,vZF,ZOO v" "LHarcL,vLF,LHARC l" ARC X ZOO X LHArc X Uncompresses files for these compressors commonly used in modem work. Requires ARC or ZOO or LHARC to be in an current path such as c:. Files go to the other directory. "ARC X ,x0F,ARC xw" "ZOO X ,x0F,ZOO xO//" "LHarcX,x0F,LHARC -x -m x" LHarc A Adds file to a Lharc archive that you specify in the prompt. "LHarcA,a0F,LHARC -x -r -m a" Changing the configuration -------------------------- Menu Options Move the mouse pointer up to the left side of the title bar of the window and press the right mouse button. You can select whether you want Fast&SmoothFloppyDirs or if you want Destination Files displayed or if you want VMK to be run every 10 seconds when the window is active(ie selected). Note that the DirWork FSDirs does not make use of dos buffers that have been added using AddBuffers, but does very well with the two commercial diskbuffering programs. Also there are two functions, one allows you to change the text of any of the buttons. You will be prompted for the current text of the button you want to change and then for the text to replace it with. This can be used to change one of the default dirs such as DH0: to something you use more often such as RAD: or C: etc The SAVE function will modify a DW executable to have the setup that you currently have. You are prompted for the name of the DW which would most likey be C:DW. So just change the menu options and buttons to what you like then save them to your DW. Changing a button:- You can change a button to make it do something slightly different to something totally different. Just press on the button then go to the menu and select "Change last button pressed". You are then able to edit the button configuration text. Which comprises of:- " , , " |||||| ||| | | ||| +------------Arguments for operation | ||| | ||| | ||+--------------What needs to be selected for operation | || 0=Any or None. F=Files. D=Dirs. B=Files &/or Dirs. | || | || | |+--------------------- Instant action type | | A=Arc file. Z=Zoo file. L=Lharc file. I=ZIP file | | R=Warp file. M=Most text file. E=Executable | | P=IFF ILBM picture. S=IFF 8SVX sound. | | G=IFF SMUS song. N=IFF ANIN animation. | | T=Text file. B=Unkown/Binary file. | | 0=No instant action type. | | | | | +------------------------ Internal routine the button uses | A capital letter signifies that the operation does | not require selected files/dirs. A lower case | hence means the operation should require selected | files/dirs. | | +---------------------------------------- Button Name of 6 Chars Information & Examples of making changes:- Routine| Example changes and Information letter | ------------------------------------------------------------- D A simple change would be changing DF2: to RAD: just " DF2: ,D00,DF2:" change to " RAD: ,D00,RAD:" e To change to path for the editor from E to c:Ed " Edit ,e0F,Run >NIL: E" change to " Edit ,e0F,Run >NIL: c:Ed" To make a button into a picture viewer or similar just make a button like "Viewer,e0F,Viewer" Say you have a aninmation player called ShowANIN and you want to be able to press the right mouse button on a IFF ANIM file and have dirwork instantly recognize the file and play the animation using ShowANIN. Something like this should work "ShANIN,eNF,c:ShowANIN" O If you don't want command to open a window for output "Comand,O00,W" change to "Comand,O00,N" Say you have a calculator that you commonly use. Do something like this. " Calc ,O00,NRun >NIL: Calculator" ^^^^^^^^^^^^^^^^^^^^ where the above is what you would type in from cli. When you press the button a prompt will come up, you can change it or just select GoDoIt. Similar manipulations of the O routine could give you a format, diskcopy or similar button. x & v You could swap the instant letter from the ZOO/ARC/LHARC list and extract buttons so that right mouse button extracts instead of lists. There are heaps more configuration changes & new buttons you could make! If you are a registered user just describe what sort of button you would like configured and I will give you the button configuration text for it if it is possible. Bye, Chris Hames (Available for any Amiga work)