2014-03-05 76 views
0

我有這段代碼來創建一個消息框。如何使消息顯示4個變量批量/ vbs消息框顯示變量

%data1% 
%data2% 
%data3% 
%data4% 

-

Taskkill /f /im wscript.exe 2>> Log.txt 
If exist "%Temp%\done.vbs" (
Attrib -R -S -H "%Temp%\done.vbs" 
If exist "%Temp%\done.vbs" (
    Echo Could not delete file "%Temp%\done.vbs" 
    Pause 
) 
) 
> "%Temp%\done.vbs" ECHO x=msgbox("The message" ,6, "test") 
start "" wscript "%temp%\done.vbs 

回答

2

您的aproach應該工作,但也有在你的代碼的一些語法錯誤。 嘗試類似

echo msgbox %data1% > %temp%\done.vbs 
start "" wscript "%temp%\done.vbs" 

使用引號適量,檢查MSGBOX的文檔

希望幫助