system
Sends a command to the operating system.
Syntax
-
system(cmd[, args])
-
cmd
is a string -
args
is a string
-
Description
If cmd
is a string, then system(cmd)
sends the command stored in cmd
to the operating system for immediate execution. cmd
is typically an executable file, a directory, a document file, or a URL.
If cmd
is an executable file then args
contains the command-line arguments to call it with.
Examples
system("notepad")
success
system("notepad", "D:\numbers.txt")
success
system("D:\picture.jpg")
success
system("https://rejbrand.se")
success
system("mailto:albus.dumbledore@hogwarts.ac.uk?subject=Regarding the vacant DADA position")
success