Differences between revisions 50 and 54 (spanning 4 versions)
Revision 50 as of 2013-12-30 10:23:27
Size: 2313
Editor: anonymous
Comment:
Revision 54 as of 2016-08-31 15:53:50
Size: 1151
Editor: KaiJaeger
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= WinFile =
{{{WinFile}}} is part of the CategoryAplTree project.
= OS: Interface to the Operating system =

{{{OS}}} is part of the CategoryAplTree project.
Line 7: Line 8:
WinFile deals with Files and Directories. This class offers methods that return the same result under Windows, Linux (without the PI) and Mac OS.
Line 9: Line 10:
Nowadays if there is a need to deal with directories and files, there is .NET, right? Well, some companies have decided against .NET, so there is still the need for a .NET-free solution to this. This is what the WinFile class is designed for. Examples are `GetPID` and `KillPID`.
Line 11: Line 12:
But there is more to say to this: try to get a DirectoryInfo for a directory with, say, 100,000 files. Then compare with this class. Exceptions are the functions `ShellExecute` (Linux/Mac only) and `WinExecute` (Windows only). They
perform very similar tasks but with very different parameters and results, so they were separated.
Line 13: Line 15:
See the list of methods (generated with [[ADOC]]):

== Methods ==

<<SeeSaw(section="methods", toshow="<<Show>> the list of methods", tohide="<<Hide>> the list of methods", bg="#FEE1A5", speed="Slow")>>
{{{{#!wiki seesaw/methods/methods-bg/hide
== List of methods ==
Line 21: Line 18:
  Cd
  CheckPath
  CopyToWithRC
  CopyTo
  DateOf
  Delete
  DirTree
  DirX
  Dir
  DoesExistDir
  DoesExistFile
  DoesExist
  ExpandEnv
  ExpandPath
  GetAllDrives
  GetDriveAndType
  GetTempFileName
  GetTempPath
  History
  IsDirEmpty
  IsFilenameOkay
  IsFoldernameOkay
  IsValidWin32Filename
  ListDirsOnly
  ListDirXIndices
  ListFileAttributes
  MkDir
  MoveToWithRC
  MoveTo
  PolishCurrentDir
  PWD
  ReadAnsiFile
  RmDir
  Version
  WriteAnsiFile
  YoungerThan
Shared Methods:
  CreateParms_WinExecute
  GetPID
  GetSharedLib
  KillPID
  ShellExecute
  Version
  WinExecute
Line 58: Line 27:
}}}}

== Fields ==

<<SeeSaw(section="fields", toshow="<<Show>> the list of fields", tohide="<<Hide>> the list of fields", bg="#FEE1A5", speed="Slow")>>
{{{{#!wiki seesaw/fields/fields-bg/hide

{{{
  COL_CreationDateName
  COL_LastAccessDate
  COL_LastWriteDate
  COL_Name
  COL_ShortName
  COL_Size
  FA_ARCHIVE
  FA_COMPRESSED
  FA_DEVICE
  FA_DIRECTORY
  FA_ENCRYPTED
  FA_HIDDEN
  FA_NORMAL
  FA_NOT_CONTENT_INDEXED
  FA_OFFLINE
  FA_READONLY
  FA_REPARSE_POINT
  FA_SPARSE_FILE
  FA_SYSTEM
  FA_TEMPORARY
  FA_VIRTUAL
  okay
}}}
}}}}
Find out more by looking into the documentation [[attachment:WinFileDocumentation.html]]

OS: Interface to the Operating system

OS is part of the CategoryAplTree project.

Overview

This class offers methods that return the same result under Windows, Linux (without the PI) and Mac OS.

Examples are GetPID and KillPID.

Exceptions are the functions ShellExecute (Linux/Mac only) and WinExecute (Windows only). They perform very similar tasks but with very different parameters and results, so they were separated.

List of methods

Shared Methods:                                                                                                                     
  CreateParms_WinExecute
  GetPID           
  GetSharedLib     
  KillPID          
  ShellExecute     
  Version          
  WinExecute       

Project Page

For bug reports, future enhancements and a full version history see WinFile/ProjectPage

Version Information

Original author:

KaiJaeger

Responsible:

KaiJaeger

Email:

kai@aplteam.com

WinFile needs version 13.0 of Dyalog APL.


CategoryAplTree

OS (last edited 2018-03-03 11:39:49 by KaiJaeger)