VB写WINDOWS CMD
因应用PHP5.4的内建WEB SERVER要在WINDOWS CMD键入 php -S localhost:8080,但有DOS PROMPT视窗显现?若用VB写此启动WEB SERVER的程式,执行结果等同在CMD键入,怎样写?
[解决办法]
Private Declare Function WinExec Lib "kernel32" Alias "WinExec" (ByVal lpCmdLine As String, ByVal nCmdShow As Long) As Long
WinExec "cmd /c php -S localhost:8080",0