Xbasic
FILE.MACHINES_GET Function
Syntax
Network_Resource_List as C = FILE.Machines_Get([C options])
Arguments
- optionsCharacter
Flags can include any of the directives, separated by any delimiter. Flags are:
- Options Flag
- Description
- "S"
Storage
- "P"
Printers
- "D"
Include domains
- "F"
<Format>. Format options are as follows:
- <Format> Options
- Description
- "C"
Comment
- "P"
Provider
- "L"
Localname
- "T"
Type
- "B"
Base
- "M"
Machine
- "R"
Resource
Returns
- Network_Resource_ListCharacter
A list of all of the shared drives, machines and printers available to your on your network.
Description
Returns a list of the valid servers - options S-storage,P-drinters,D-include domains,F=<format> - special format options C-omment,P-rovider,L-ocalname,T-ype,B-ase,M-achine,R-esource.
Discussion
The FILE.MACHINES_GET() method returns a list of all of the shared drives, machines and printers available to your on your network.
Example
? FILE.machines_get("D|S") = "Microsoft Windows Network|ALPHASOFTWARE|\\GEORGE\a5beta Microsoft Windows Network|ALPHASOFTWARE|\\GEORGE\SharedDocs Microsoft Windows Network|ALPHASOFTWARE|\\GEORGE\CDMasters Microsoft Windows Network|ALPHASOFTWARE|\\DIANE\C Microsoft Windows Network|ALPHASOFTWARE|\\CARRIBEAN\downloads ...
See Also