September 2017 Update

This commit is contained in:
Ingy döt Net 2017-09-23 10:01:46 +02:00
parent bba7bfd280
commit ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions

View file

@ -1,6 +1,6 @@
;Task:
Run either the &nbsp; <tt>'''ls'''</tt> &nbsp; system command &nbsp; (<tt>'''dir'''</tt> &nbsp; on Windows), &nbsp; or the &nbsp; <tt>'''pause'''</tt> &nbsp; system command.
<br><br>
;Related tasks
;Related task
* [[Get_system_command_output | Get system command output]]
<br><br>

View file

@ -0,0 +1,2 @@
' Execute a system command
SYSTEM "ls"

View file

@ -0,0 +1 @@
! ls

View file

@ -0,0 +1,5 @@
Public Sub Main()
Shell "ls -aul"
End

View file

@ -0,0 +1,10 @@
// version 1.0.6
import java.util.Scanner
fun main(args: Array<String>) {
val proc = Runtime.getRuntime().exec("cmd /C dir") // testing on Windows 10
Scanner(proc.inputStream).use {
while (it.hasNextLine()) println(it.nextLine())
}
}

View file

@ -0,0 +1 @@
"ls -a" system

View file

@ -0,0 +1 @@
os::shell('ls -a').

View file

@ -0,0 +1,13 @@
!dir
* print a message and wait
!echo Ars Longa Vita Brevis && pause
* load Excel from Stata
!start excel
* run a Python program (Python must be installed and accessible in the PATH environment variable)
!python preprocessing.py
* load Windows Notepad
winexec notepad

View file

@ -0,0 +1 @@
System.cmd(System.isWindows and "dir" or "ls")