Hello All,
Whilst not strictly a scripting question, whether anybody can answer or not will decide whether i attempt to write the script! We use a fairly old document management system that, before the introduction of centera etc required all of the documents to be stored on magnetic disks in disksets. Nowadays the documents are held on the server before being archived to permenant storage. The problem i have is that the location the files are written to on the server is dependant on the file name (IFNId). I want to create a script that will take the file name and tell me where the document is stored on the server. The problem i have is in the way the structure is created, it makes zero sense to me, i've consulted the oracle (google) and it hasn't helped me understand at all. I was hoping someone could explain to me, in plain english, how this works?
The top level directory is based on the diskset number.
• The next directory is calculated by representing the most significant byte of the IFN ID
in decimal format.
• The next directory is calculated by representing the 2nd most significant byte of the
IFN ID in decimal format.
• The next directory is calculated by representing the 3rd most significant byte of the
IFN ID in decimal format.
• The filename is calculated by representing the least significant byte of the IFN ID in
decimal format.
For example, the file for image 112/2-1234 would be found in:
is/files/112-2/000/000/004/210