[-Contents-] [-Installation-] [-General Info-] [-Main Window-] [-Commands-] [-Menu-] [-Changes-]

# Configure Filetypes

You can configure any number of filetypes. A filetype is recognized by the suffix.
For example: defining a command for each file ending in .txt (an ASCII Textfile) would launch the defined program each time you doubleclick on a file ending in .txt (pressing return when the cursur is over it does the same). You can define the colour in which this filetype is displayed. Clicking 'Find File' opens a standard Windows requester where you can select the file you want to apply to this specific filetype. If you want to apply a program to this filetype that is already applied to another filetype you can click on the drop down box just below the filetype list.
From PCOpus 1.51 on you may specify more than one command for a filetype. It is now possible to define a command for

- Left Double-Click (L L)
- Left-Right-Click (L R)
- Right-Left-Click (R L)
- Left-SideChange-Left (L-c-L)
- Left-SideChange-Right (L-c-R)

LL, LR and RL should be clear to understand.
SideChange means: You may click on a file in a window, quickly move to the inactive window and click again (left or right)
You can also use most internal commands for the filetypes. Please look in the drop-down list for available commands.
Two special filetypes exist, too. One is *!f. This means all files. This filetype is only activated if no other filetype was found fitting. Defining the *!f filetype with *!WinStandard in the LL field is the same as using <Windows Standard> in previous versions of PCOpus. The other one is *!d. This means all directories. The settings here are used when any directory is selected with LL, LR, RL, L-c-L and L-c-R. The settings in LL are ignored, double-clicking always enters the directory. I recommend defining L-c-L with *!DisplayDirInOtherWindow.
If you want to have no command executed when a certain combination is clicked, define *!*NoCommand for this function. PCOpus will not look for the command defined in *!f then.
Behind each line is a little checkbutton. Check it if you use commands like
C:\WINDOWS\Sndrec32.exe /play /close /embedding
for playing WAV files for example. If the checkbutton is on, VB internal routines are used instead of Windows calls. You can use any options for the command called and you can use programs with names containing spaces this way. (Leave the checkbutton off when using programs with spaces in the name.) Try it out if you have problems, the only thing you may get if the operation fails is a little requester. You should leave the checkbuttons off until you experience problems.

Please take care. Since the possibilites are now really vast, the dangers have grown, too. Defining too much commands for filetypes can lead to confusion. You have been warned ! It is now even possible to define 'Delete' on a double-click !

Some internal settings are available for filetypes:

- <Executable>
  If you apply this to the filetype, double clicking launches the program. You can enter a commandline or some switches in a special requester.
- <CPBackup Dir>
  Displays the contents of a CPBackup Dir-File in the list. CPBackup is Central Point Backup, known from PCTools. Oldie but Goldie.
- <ISO9660 Image>
  Enters an ISO9660 Image file.
- <FCD1.0 Image>
  Enters an FCD v1.0 uncompressed image.
- <Direct Archive>
  If this filetype is defined, double clicking enters the archive file itself. Supported are ARJ, RAR, ZIP, LHA/LZH, CAB, D64 files. The archive is treated nearly like a directory. Directory buffering is not supported and some commands are disabled. You can use your external commands, though.
  I took a different approach to archives as in DCC for example. If you select a file in a subdirectory in an archive and you want to copy this file to the Destination, DCC for example creates the same subdirectory as in the archive and extracts the file to this subdirectory. This is an internal problem of the archivers. PCOpus extracts all selected files to your temp directory and copies them from there to the Destination, thus, the subdirectories you did not select are not created. On the other hand, my approach is slower than DCC's. But my version is much more exact. Always have in mind, that all selected files inside an archive are first extracted to the temp directory and then the command you chose is executed on them. Many commands are disabled, for example it is not possible to copy to an archive. Use the Archive requester and add instead. I experienced problems when deleting files from archives, so I disabled this, too. What else is disabled ? Well, if a command button shows no effect, it is not supported. The idea behind the option to enter archives was just this: The user should be able to look at the contents of an archive without extracting the complete archive and have a quick look at a readme or a File_ID.DIZ inside the archive. See Supported Filetypes for more information.
  ! AGAIN: PLEASE NOTE THAT MOST ARCHIVERS CURRENTLY ONLY SUPPORT DOS 8+3 !
  ! NAMES! PCOPUS WILL GET CONFUSED IF LONG FILENAMES INSIDE ARCHIVES ARE !
  ! ACCESSED, BECAUSE THE ARCHIVERS CREATE ONLY 8+3 NAMES AND PCOPUS WILL !
  ! TRY TO ACCESS THE LONG NAMES AFTERWARDS ! SORRY, PLEASE TAKE CARE !!! !
  ! THIS !MAY! BE REMOVED NOW WHEN FAKESHORTNAMES IS USED.
  When using <Direct Archive> PCOpus will delete files in your selected temporary directory without request. Not all files of course, but the files it just has extracted. Please take care not to access files inside archives that are present in your temporary directory if you still need these files. Well, the temporary directory is a temporary directory, and PCOpus has to use a special directory for its operations.

Buttons available:

- Exit
  Exit
- Update
  Adds the current filetype to the list or updates the filetype
- Clear
  Clears the current filetype. It is NOT deleted from the list
- Delete
  Deletes the current filetype from the list
- Find File
  Opens a Windows requester to select the program to be run on double-click
- Forecolor
  Lets you select the foreground color of the current filetype
- Backcolor
  Same with background color (If 'Std. Bk. col' is activated, the background color is ignored and the standard background color for files is used)

  [-Contents-] [-Installation-] [-General Info-] [-Main Window-] [-Commands-] [-Menu-] [-Changes-]