Intranet/Hosting Toolkit [table of contents]
[CFX_Shars]
v1.10 November 30th 2001
CFX_Shares
OPEN-SOURCE
NT DLL for Cold Fusion 4.0.1 and up
Lewis A. Sellers
http://www.intrafoundation.com/ihtk.asp
products@intrafoundation.com

FOREWORD

This is an Allaire Cold Fusion Extension Tag (CFX). It is for use with Allaire Cold Fusion Servers 4.0.1 (and up) running on Microsoft NT. It was written by Lewis A. Sellers of Intrafoundation Software.

CFX_Shares simply allows you to manage network shares. Add them. Delete them. List them.

Please read the version history for current tag status before emailing questions.

C O N T E N T S

Foreword

General
Shares

Version History

top

G E N E R A L

ABOUT

<CFX_Shares ACTION="ABOUT">

The tag itself returns a couple variables back no matter what you do (SharesDescription, SharesVersion and SharesError). These are always available unless there is a catastrophic failure of the tag.

Additionally you can use the ABOUT function to return more detailed information on the tag. The fields returned are mostly only of interest for curiosity or in debugging a situation.

Note below that though the tag returns it's SerialNumber, it's not used currently, and hasn't been for a very long time, but probably will be again soon.

For the curious, it also proves the total number of lines of c/c++ that the current build was using. This includes the scant comments in the source code. For instance, this build of the tag has 535 lines of code.

Description
The general product description.
Version
The version number of the software, ie 2.0.
Quality

The quality field will be one of the following four: "Alpha", "Beta", "Gamma" or "Omega". Quality relates the quality control status of the version of the tag you're currently using.

Alpha code is highly unstable and shouldn't be trusted for anything. Do not use on production machines.

Beta code is close to being finish and it is in a debugging phase. Do not use on production machines.

Gamma code is for use on production machines. As far as the beta testers have determined it works as it should.

When a product goes Omega that generally means it is long used Gamma code that is now no longer being maintained.

SubVersion
The subversion number of the software, ie 4 for "2.0beta4".
SerialNumber
Currently unused.
Lines
The total lines of c/c++ code in the software.
BuildDate
The ODBC DATETIME when the tag was last compiled (built).
Evaluation
Boolean field (0 or 1). 1 indicates the version of the tag you're using is a time-limited evaluation version. 0 is full commercial.
ExpirationDate
The ODBC DATETIME date when the tag will stop working.




top

S H A R E S

SHARES

<CFX_Shares ACTION="SHARES">

FIELDS
Domainstring
Computerstring
Sharestring
Descriptionstring
Hiddenboolean
CurrentUsersnumber
MaxUsersnumber
OPTIONAL
Querystring
Computerstring
REQUIRED
ActionSHARES

Lists all the shares on the local computer or any computer specified with the Computer parameter.

MaxUsers returns "-1" if there is no defined limit on the number of connections to the share.

Hidden. The share is normally hidden from users.

CurrentUsers. The current number of connections (usually the number of computers) made to this share.





ADD

<CFX_Shares ACTION="Add">

OPTIONAL
Computerstring
Commentstring
Usersnumber
Passwordnumber
REQUIRED
ActionADD
Sharestring
Pathstring

This creates an alias to a drive:folder location that is shared by all applications on the network.

SHARE is the name which you give to the share, such as "myShare". PATH is the physical path to your storage medium. USERS is the maximum number of users you wish to be able to connect to the network share. 0 forbids anyone from using it.

Example: <CFX_Shares ACTION="Add" SHARE="name" PATH="drive:path" COMMENT="comment" USERS="n|0" QUERY="s">





DELETE

<CFX_Shares ACTION="Delete">

REQUIRED
ActionDELETE
Sharestring

Removes the specified share.

Example: <CFX_Shares ACTION="Delete" SHARE="name">






top

VERSION HISTORY

[A shared bridge over misty waters.]





top
f i n i
-{ts '2001-12-03 03:35:34'} /ihtkdocs/Shares/index.cfm-