2017-01-12 8 views
-1

私はCMDおよび書き込みと、Windowsコンソールで私のPHPスクリプトを実行します。php.exeとフレンドリーなGUIを使ってphpファイルを実行する方法はありますか?

[PATH to php.ext]\php.exe [path_to_file]\file.php parameter 

は、任意のGUI(または類似)とのPHPファイルを実行する方法と、ブラウザを使用せずにパラメータを尋ねるための入力テキストはあります?このような何か:

enter image description here


君たちをありがとうございます。

答えて

0

のVisual Basicスクリプトは、私のための有効なオプションです:

sub shell(cmd)  

' Run a command as if you were running from the command line 

dim objShell 
Set objShell = WScript.CreateObject("WScript.Shell") 
objShell.Run(cmd) 
Set objShell = Nothing 
end sub 

dim name 

' Ask the user for a parameter 

name = inputbox("Parameter", "Title", "") 

if name <> "" then 

' The user gave the parameter. Open the program 
' with the value the user gave. 

shell "php.exe file.php " & name 
else 
msgbox "User cancelled.", 16, "User cancelled" 
end if 
関連する問題