Execute a system command: Difference between revisions
Content added Content deleted
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
=={{header|Ada}}== |
=={{header|Ada}}== |
||
<lang ada> |
|||
<Ada> |
|||
with Interfaces.C; use Interfaces.C; |
with Interfaces.C; use Interfaces.C; |
||
Line 14: | Line 14: | ||
Ret_Val := Sys(To_C("ls")); |
Ret_Val := Sys(To_C("ls")); |
||
end Execute_System; |
end Execute_System; |
||
</ |
</lang> |
||
=={{header|AppleScript}}== |
=={{header|AppleScript}}== |
||
Line 439: | Line 439: | ||
Shelling out a sub task in Visual Basic is rather a pain if you need to wait for the task to complete, which |
Shelling out a sub task in Visual Basic is rather a pain if you need to wait for the task to complete, which |
||
is probably the usual case. But it is possible. |
is probably the usual case. But it is possible. |
||
< |
<lang vb>Attribute VB_Name = "mdlShellAndWait" |
||
Option Explicit |
Option Explicit |
||
Line 516: | Line 516: | ||
End Sub |
End Sub |
||
</ |
</lang> |