September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
|
|
@ -1,6 +1,6 @@
|
|||
;Task:
|
||||
Run either the <tt>'''ls'''</tt> system command (<tt>'''dir'''</tt> on Windows), or the <tt>'''pause'''</tt> system command.
|
||||
<br><br>
|
||||
;Related tasks
|
||||
;Related task
|
||||
* [[Get_system_command_output | Get system command output]]
|
||||
<br><br>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,2 @@
|
|||
' Execute a system command
|
||||
SYSTEM "ls"
|
||||
|
|
@ -0,0 +1 @@
|
|||
! ls
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
Public Sub Main()
|
||||
|
||||
Shell "ls -aul"
|
||||
|
||||
End
|
||||
|
|
@ -0,0 +1 @@
|
|||
!ls
|
||||
|
|
@ -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())
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
"ls -a" system
|
||||
|
|
@ -0,0 +1 @@
|
|||
os::shell('ls -a').
|
||||
|
|
@ -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
|
||||
|
|
@ -0,0 +1 @@
|
|||
System.cmd(System.isWindows and "dir" or "ls")
|
||||
Loading…
Add table
Add a link
Reference in a new issue