Size: 1425
Comment:
|
Size: 916
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
= Dealing with Files and Directories = | = OS: Interface to the Operating system = {{{OS}}} is part of the CategoryAplTree project. |
Line 6: | Line 8: |
This class offers methods that return the same result under Windows, Linux (without the PI) and Mac OS. | |
Line 7: | Line 10: |
Nowadays if there is a need to deal with directories and files, there is .NET, isn't it? 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 9: | 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 11: | Line 15: |
See the list of methods (generated with [[ADOC]]): | == List of methods == |
Line 13: | Line 17: |
== Methods == | |
Line 15: | Line 18: |
*** WinFile (Class) *** Shared Methods: Cd CheckPath CopyTo DateOf Delete Dir DirX 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 42: | Line 28: |
Find out more by looking into the documentation [[attachment:WinFileDocumentation.html]] | |
Line 44: | Line 29: |
== History == For a full version history: [[WinFile/History|History]] |
`OS` needs version 15.0 Unicode of Dyalog APL. |
Line 47: | Line 31: |
== Version Information == ||Original author:||KaiJaeger|| ||Responsible:||KaiJaeger|| ||Email:||kai@aplteam.com|| ||Current state:||1.2.5|| == Download == [[http://aplteam2.com/aplwiki/WinFile?action=AttachFile&do=get&target=WinFile.ZIP | Download right now]] [[attachment:WinFile.ZIP | Manage the attachment]] |
<<Include(APLTreeDownloads)>> |
Line 60: | Line 34: |
CategoryOpenSourceApl 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.