[Home] Module Microsoft.FSharp.Compatibility.OCaml.Sys


Sys: Basic system operations (for ML compatibility) This module is only included to make it possible to cross-compile code with other ML compilers. It may be deprecated and/or removed in a future release. You may wish to use .NET functions directly instead.

Values

ValueDescription
[<OCamlCompatibilityAttribute
  ("Consider using System.Environment.GetCommandLineArgs directly")>]
val argv : string array
The array of command line options. Gives the command line arguments as returned by System.Environment.GetCommandLineArgs.
[<OCamlCompatibilityAttribute
  ("Consider using System.IO.Directory.SetCurrentDirectory directly")>]
val chdir : string -> unit
Sets the current working directory for the process using System.IO.Directory.SetCurrentDirectory
[<OCamlCompatibilityAttribute
  ("Consider using System.Diagnostics.Process directly")>]
val command : string -> int
Run the command and return it's exit code. Warning: 'command' currently attempts to execute the string using the 'cmd.exe' shell processor. If it is not present on the system then the operation will fail. Use System.Diagnostics.Process directly to run commands in a portable way, which involves specifying the program to run and the arguments independently.
[<OCamlCompatibilityAttribute
  ("Consider using System.AppDomain.CurrentDomain.FriendlyName directly")>]
val executable_name : string
Path of the current executable, using System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory,System.AppDomain.CurrentDomain.FriendlyName)
[<OCamlCompatibilityAttribute ("Consider using System.IO.File.Exists directly")>]
val file_exists : string -> bool
Returns true if a file currently exists, using System.IO.File.Exists(s).
[<OCamlCompatibilityAttribute
  ("Consider using System.IO.Directory.GetCurrentDirectory directly")>]
val getcwd : unit -> string
Returns the current working directory for the process using System.IO.Directory.GetCurrentDirectory
[<OCamlCompatibilityAttribute
  ("Consider using System.Environment.GetEnvironmentVariable directly")>]
val getenv : string -> string
Call System.Environment.GetEnvironmentVariable. Raise KeyNotFoundException if the variable is not defined.
[<OCamlCompatibilityAttribute ("Consider using System.IO.File.Delete directly")>]
val remove : string -> unit
Deletes a file using System.IO.File.Delete.
[<OCamlCompatibilityAttribute ("Consider using System.IO.File.Move directly")>]
val rename : string -> string -> unit
Rename a file on disk using System.IO.File.Move
[<OCamlCompatibilityAttribute
  ("Consider using System.Diagnostics.Process.GetCurrentProcess().UserProcessorTime.TotalSeconds directly")>]
val time : unit -> float
Time consumed by the main thread. (for approximate timings). Generally returns only the processor time used by the main thread of the application.
[<OCamlCompatibilityAttribute
  ("Consider using sizeof directly, where this returns a size in bytes")>]
val word_size : int
The number of bits in the "int" type.

See Also

Microsoft.FSharp.Compatibility.OCaml


Documentation for assembly FSharp.PowerPack, version 1.9.6.16, generated using F# Programming Language version 1.9.6.16