Showing changes from revision #3 to #4:
Added | Removed | Changed
Warning: The current and/or previous revision contained markup errors which prevented proper diff analysis. A guess at markup correction has been made but the diff may not be a truly accurate reflection of the real changes.
As discussed in the key features section on FileSwitch, a 3-digit hexadecimal value is used to represent the file type. It is the file type that determines the action that must be performed on a file.
When a date stamped file of type xxx has an action of *Load or *Run performed on it, FileSwitch carries out several steps to determine what it should actually do.
The steps are:
Alias$@LoadType_
xxx or Alias$@RunType_
xxx respectively.File Details | |
---|---|
CSD | adfs::HardDisc.$.Photos.Wedding |
Command | *LOAD Photo001 |
File type | &FF9, Sprite (bitmap) |
Step 1 – Find system variables | |
Variable | *@LoadType_FF9 |
Step 2&3 – Use full pathname + parameters | |
Issues command | *@LoadType_FF9 adfs::HardDisc.$.Photos.Wedding.Photo001 |
Alias$@LoadType_FF9 |
has a value of SLoad %*0 by default |
Step 4 – CLI issues command | |
Output | *SLoad adfs::HardDisc.$.Photos.Wedding.Photo001 |
File Details | |||
---|---|---|---|
File Details | |||
CSD | adfs::HardDisc.$.Programs | ||
CSD | adfs::HardDisc.$.Programs |
||
Command | *RUN BasicProg p1 p2 | ||
Command | *RUN BasicProg p1 p2 |
||
File type | &FFB, BASIC | ||
File type | &FFB, BASIC | ||
Step 1 – Find system variables | |||
Step 1 – Find system variables | |||
Variable | *@RunType_FFB | ||
Variable | *@RunType_FFB |
||
Step 2&3 – Use full pathname + parameters | |||
Step 2&3 – Use full pathname + parameters | |||
Issues command | *@RunType_FFB adfs::HardDisc.$.Programs.BasicProg p1 p2 | ||
Issues command | *@RunType_FFB adfs::HardDisc.$.Programs.BasicProg p1 p2 |
||
Alias$@RunType_FFB | has a value of Basic –quit |"%0| %*1 by default | ||
Alias$@RunType_FFB |
has a value of Basic –quit |
“%0 | %*1 by default |
Step 4 – CLI issues command | |||
Step 4 – CLI issues command | |||
Output | *Basic - quit "adfs::HardDisc.$.Programs.BasicProg" p1 p2 | ||
Output | *Basic - quit "adfs::HardDisc.$.Programs.BasicProg" p1 p2 |
The filing system manager sets several of these system variables by default; however, they can be changed easily. This is useful say, if a newly installed application wants to be responsible for loading files of a certain type.
Setting a file of a specific file type can easily be achieved by using the *Set command.
A simple example of this is command is provided below.
Set Alias$@LoadType_007 SpyApp %*0
Set Alias$@RunType_007 SpyApp %*0