home *** CD-ROM | disk | FTP | other *** search
- Dir Control version 1.04 by Chris Coe of Norsoft Productions 1994
- ===========
-
- The ultimate aim of Dir Control is to provide the user with all the little
- utilities and add ons that he/she uses with regards to disk management in one
- program. This first release version contains the system plus five utilities;
- I want to know what sort of gadgets people find useful so I can make a really
- useful organizer (see below for contanct address). The program has three main
- functions:
-
- 1) Directory on the icon bar
- -------------------------
-
- You can put any directory of your choice onto the icon bar for quick and
- easy access. The directory can be somewhere on your hard disk, or the
- "Dirs" directory which is hidden in !DirCtrl itself. This is useful for
- hiding files from other users so that the only way to get to it is
- through Dir Control.
- The directory display options can also be set to anything you want. This
- can be useful for cataloguing many similar files. For example, if you
- normally have the directory showing large icons sorted by name (as most
- people do), but you have a Letters directory with 60 files in it, you
- might want to show the directory with small icons and sorted by date.
-
- 2) Password protection
- -------------------
-
- To keep prying eyes out, there is a (fairly) flexible password system in
- Dir Control. You can configure it to request the password when you first
- load the program, every time you access the directory, or both. You can
- either set the program to quit or the computer to crash if the user
- enters the wrong password. In this version you are only allowed one
- attempt, but this may be changed in later versions.
- The actual password can be upto 10 characters long, and case is important
- so you need to make sure the Caps Lock light is in the correct
- configuration before you enter it.
-
- 3) Useful utilities
- ----------------
-
- The icon bar menu provides a Utils sub-menu which lists all the utilities
- included with the current version, plus an option to open the directory
- (see above). In this version, they are:
-
- Dir scan - produce text output of contents of a disk or directory
- Auto archive - turns files/directories into archives of the same name
- Smart rename - neatens up filenames
- Empty RamFs - provides a quick and easy way of emptying the RAM disk
-
- In addition, you can set the CSD (Current Selected Directory) by dragging
- files/directories to the icon bar.
- These utilities are described in more detail below.
-
- Configuration
- -------------
-
- When you first load Dir Control, an icon will install itself onto the icon
- bar. Bring up the menu and choose the "Preferences" option; this will open up
- a window containing a myriad of settings for your personal preference. These
- are permanently stored inside !DirCtrl in the !Choices text file. The file is
- layed out in pure English, so it is easy to edit even without the preferences
- window (the only exception to this is the password, which is encrypted to
- prevent sneaky users discovering it!). The options available are:
-
- Access: Password - Toggles password protection on/off
- Request: On startup - When selected, the user will be prompted
- to enter the password when the program is
- first loaded.
- On access - When selected, the user will be prompted
- to enter the password when he or she
- attempts to access the directory.
- Failure: Crash - If the user enters the wrong password,
- this will cause the computer to freeze,
- the only way out being to reset it.
- CAUTION: Use with care, you only get one
- chance!
- Quit - If the user enters the wrong password,
- this will cause Dir Control to quit
- immediately.
- Password: Enter your password here. You can use
- any characters you like, but the maxiumum
- limit is ten characters.
- Behaviour: Open at
- start - When selected, the directory window will
- open as soon as the program is loaded
- (but after the password is entered
- correctly, if this option is set).
- Dir icon - When selected, a directory of your choice
- will reside on the left-hand side of the
- icon bar. When unselected, the usual
- !DirCtrl icon will appear on the
- right-hand side of the icon bar. All
- options relating to the directory will be
- disabled, and then the program will just
- act as a utility bank.
- Search path- This is the location where Dir Control
- looks for the directory to display and
- protect. If you type in ..Internal -
- exactly as shown, including case - then
- Dir Control will look inside its own
- 'Dirs' directory found inside the
- program. You can thus hide files in
- !DirCtrl and put a password on them.
- Sorting: By name - This will cause files to be listed in
- alphabetical order.
- By size - This will cause files to be listed in
- reverse size order (largest first).
- By type - This will cause files to be listed in
- reverse filetype order (&FFF - &000).
- By date - This will cause files to be listed in
- reverse date order (newest first).
- Display: Large icons- This will cause large icons to be used
- to represent files.
- Small icons- This will cause small icons to be used
- to represent files.
- Full info - This will cause full information about
- files to be shown (filetype, datestamp
- etc). Small icons will be used.
- Mouse action: Directory - This will cause the directory to be
- (duplicated for opened upon a mouse click on the icon
- each mouse button) bar.
- Dir scan - This will cause the dir scan window
- to be opened upon a mouse click on the
- icon bar.
- Auto arc - This will cause the auto archive window
- to be opened upon a mouse click on the
- icon bar.
- Smart name - This will cause the smart rename window
- to be opened upon a mouse click on the
- icon bar.
- Empty RamFs- This will cause the empty RAM warning
- box to be opened uppn a mouse click on
- the icon bar.
-
- When you have set the system up to your satisfaction, click on OK to enforce
- the options for the current session or Save to make any changes permanent.
- Click on Cancel if you decide you don't want to make any changes after all,
- and Default to set everything to its normal configuration.
-
- Utilities
- ---------
-
- DIR SCAN
- The purpose of dir scan is to produce a textual "analysis" of a disk or
- directory. This information includes a dump of every file found in the
- specified search area, plus the number of files, ordinary directories and
- application directories found.
- The dir scan window contains three items. The first is a writable field which
- specifies the scan directory, in which you can drop a directory or type in
- your own. As before you can use ..Internal to specify !DirCtrl.Dirs. The
- second and third items are radio icons. If "Look inside applications" is
- selected, then dir scan will examine files inside directories. If "Count
- files" is selected, a summary of the number of objects found will be appended
- to the end of the text output.
- Click on Scan and drag the save box to a directory display to begin the
- search. The hourglass will be displayed and eventually a file will be created
- which you can examine with !Edit or something similar.
-
- AUTO ARCHIVE
- This utility could be very useful indeed. Simply ensure that a read/write
- version of ArcFS is loaded (I have only tested auto archive with ArcFS 1.09,
- so I cannot guarantee it will work with the second release), and drag a file
- or directory to the auto archive window. After a short delay, the object will
- have been turned into an archive of the same name. If you dragged a
- directory, its contents will be at the root of the archive, ie. there will
- not be a directory of the same name there, so the archive effectively
- replaces the directory.
- Objects are copied to !Scrap, so if anything goes wrong you can always find
- your data there.
-
- SMART RENAME
- Best used on large groups of files, smart rename will neaten up the
- appearance of filenames. First, drag your file/directory to the writable
- field in the smart rename window, or type your own in. You can then choose
- whether you want the filenames to be in upper or lower case, and whether the
- first letter should be capital or small. Click on Rename to start the
- process.
-
- EMPTY RAMFS
- While RISC OS 3 now allows you to quit the RAM filing system without deleting
- all the files, if you wish to just empty the RAM disk and leave it the same
- size, it is rather annoying to keep reconfiguring it in the task manager.
- Thus, empty RamFs allows you to quickly delete all files regardless of
- whether they're locked or not, but still retain the RAM disk itself. In RISC
- OS 2, this is also useful if you DO want to quit RAMFS, because there is no
- quit option in the old RAMFS menu.
- When you invoke empty RamFs, a warning window will appear asking you to
- confirm your action. Click on OK to proceed or Cancel to abort the operation.
- If you have no RAM disk configured and you click on OK, nothing will happen.
-
- SETTING THE CURRENT DIRECTORY
- This utility is always active. It works in two ways. If you drag a directory
- to the icon bar, then the CSD will be set to that directory. However, if you
- drag a file or application to the icon bar, the CSD will be set to the
- directory containing that file or application. So, dragging the directory:
-
- adfs::FRED.$.Letters.Accounts will set the CSD to that directory
-
- But dragging the file:
-
- adfs::FRED.$.Letters.WaterBill will set the CSD to
- adfs::FRED.$.Letters (its parent directory)
-
- Known bugs
- ----------
-
- 1) When you change the directory name for display on the icon bar, there is a
- problem if you enter a name that is longer than the previous one, in that it
- won't be completely displayed. This problem disappears when you reload the
- program. The problem is, I don't know how to change the size of the sprite so
- that the whole thing is displayed, so if anyone can help me, I'd be grateful!
-
- 2) If you invoke a dir scan that becomes many directories deep, the program
- may fail with an error. Currently the only easy way around this is to
- increase the WimpSlot setting in the !Run file. Increase both numbers in
- steps of 32k until the problem vanishes.
-
- Contact
- -------
-
- Bug reports, suggestions for improvement, comments, donations or indeed
- anything should be sent to:
-
- Norsoft Productions,
- 19 Seton Road,
- Taverham,
- Norwich,
- Norfolk,
- NR8 6QE.
-
- Nasty Warning!
- --------------
-
- This program is Public Domain. You may copy it if you wish (please do!), but
- DON'T make any profit out of it, or I'll send a nasty man round with designer
- stubble and a large chain saw!
-
-
-
-
-
- History
- -------
-
- 1.00 - First release version
- 1.01 - Auto archive rename bug fixed
- 1.02 - CSD utility added
- 1.03 - Archives are now closed automatically after Auto archive finishes
- DirCtrl$Dir system variable added - this removes the problem caused
- when the user tries to quit after loading another application.
- 1.04 - Smart rename directory filename changing bug fixed
-