<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Wed, 24 Aug 2011 22:04:03 GMT
From   : jgh@... (J.G.Harston)
Subject: ANN: Context library

BLib.Context - Read and Write Filing System Context
http://mdfs.net/blib/Context
http://mdfs.net/blib/Docs/Context.txt

Something I've wanted to get around to writing for a long time, the
Context library allows you to read and write the current filing
system context independantly of the current filing system.

Routine Summary:
  FNfs_RdCSD         - Read current filing system context
PROCfs_WrCSD(csd%)   - Restore filing system context

FNfs_RdCSD:
Returns 0 or a value to pass back to PROCfs_WrCSD(). The returned
value encodes the current filing system and the currently selected
directory.

PROCfs_WrCSD(csd%):
On entry, csd%=0 or a previous context from FNfs_RdCSD.

Example:
  csd%=FNfs_RdCSD:IF csd%=0:fs%=FNfs:csd$=FNPath_Name
  *NET
  *EX
  *DISK
  *CAT
  IF csd%:PROCfs_WrCSD(csd%) ELSE OSCLI "FX143,18,"+STR$fs%:OSCLI "DIR "+csd$

-- 
J.G.Harston - jgh@...      - mdfs.net/jgh
In the beginning was the word, and the word was... "Hey you!"
<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>