Differences between revisions 33 and 57 (spanning 24 versions)
Revision 33 as of 2011-05-03 07:00:52
Size: 2040
Editor: KaiJaeger
Comment: New version
Revision 57 as of 2018-02-17 12:59:02
Size: 916
Editor: KaiJaeger
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= Dealing with Files and Directories =
{{{WinFile}}} is part of the CategoryAplApl project.
= OS: Interface to the Operating system =

{{{OS}}} is part of the CategoryAplTree project.
Line 7: Line 8:
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. This class offers methods that return the same result under Windows, Linux (without the PI) and Mac OS.
Line 9: Line 10:
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. Examples are `GetPID` and `KillPID`.
Line 11: Line 12:
See the list of methods (generated with [[ADOC]]): 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:
== Methods == == List of methods ==
Line 15: Line 18:
*** WinFile (Class) ***
Shared Methods:
Cd
CheckPath
CopyTo
Copyright
DateOf
Delete
Dir
DirX
DoesExist
DoesExistDir
DoesExistFile
GetAllDrives
GetDriveAndType
GetTempFileName
GetTempPath
History
IsDirEmpty
ListDirsOnly
MkDir
MoveTo
ReadAnsiFile
RmDir
Version
WriteAnsiFile
YoungerThan
Shared Methods:
  CreateParms_WinExecute
  GetPID
  GetSharedLib
  KillPID
  ShellExecute
  Version
  WinExecute
Line 44: Line 27:
Find out more by looking into the documentation [[attachment:WinFileDocumentation.html]]

== 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 ||
||Current state: ||1.5.1 ||
Line 57: Line 29:
== Download ==
You have two options: you can either download the script for usage:
`OS` needs version 15.0 Unicode of Dyalog APL.
Line 60: Line 31:
[[http://aplwiki.com/WinFile?action=AttachFile&do=get&target=WinFile.ZIP|Download WinFile script right now]]

or get the whole thing from the AplWikiRepository, including the development workspace and the script and maybe more for any development or for running the test cases:

{{{
svn list svn://aplteam.com/os/dyalog/WinFile/tags
}}}
If you plan to contribute please note that all stuff published as part of the APLAPL project must follow certain [[AplAplStandards|APLAPL-specific standards]].
<<Include(APLTreeDownloads)>>
Line 70: Line 34:
CategoryAplApl CategoryAplTree

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       

OS needs version 15.0 Unicode of Dyalog APL.


CategoryAplTree

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