[DllImport("msvcrt.dll", SetLastError=true)]
static extern int system(string command);
VB Signature:
Public Declare Function system Lib "msvcrt.dll" (ByVal sCommand As String) As Long
User-Defined Types:
None.
Alternative Managed API:
System.Diagnostics.Process.Start()
Notes:
None.
Tips & Tricks:
Please add some!
Sample Code:
Public Declare Function system Lib "msvcrt.dll" (ByVal sCommand As String) As Long
Module Main()
system("ECHO Hello world!")
End Module
ByVal is a VB keyword that specifies a variable to be passed as a parameter BY VALUE. In other words, if the function or sub changes the value of the internal variable, it does not change the value of the external variable that was passed to it.
4/25/2007 3:19:55 AM - josep1er@cmich.edu-141.209.229.179