我今天開始使用名爲「oblytile」的程序,該程序使您能夠在Windows 8/8.1的Metro UI中添加自定義切片。該程序工作正常,但我有一個很大的問題,當我打開創建平鋪到文件夾,程序,文件等的時間很短一個黑色的小窗口(如CMD)彈出,就像這裏:如何隱藏Windows Script Host窗口?
並在窗口消失後,我想要打開的程序。我看過一些YouTube視頻,其他人沒有這樣的事情。我檢查了哪個程序存儲了有關磁貼的數據的文件夾,並且我發現了這個evry時間,我點擊了Metro UI中的自定義磁貼,然後啓動了VBScript。
樣品瓷磚的VBScript:
On Error Resume Next
Set objShell = CreateObject("Wscript.Shell")
Set objFSO = CreateObject("Scripting.FileSystemObject")
strApp = "C:\Users\bluea_000\OneDrive"
arrPath = Split(strApp, "\")
For i = 0 to Ubound(arrPath) - 1
strAppPath = strAppPath & arrPath(i) & "\"
Next
objShell.CurrentDirectory = strAppPath
objShell.Run """C:\Users\bluea_000\OneDrive""" & ""
If Err.Number <> 0 Then
If InStr(1, strApp, "/") > 0 then
Else
If InStr(1, strApp, "www.") > 0 then
Else
If InStr(1, strApp, "shell:") > 0 then
Else
If objFSO.folderExists(strApp) Then
Else
If objFSO.FileExists(strApp) Then
Else
MsgBox strApp & " not found", 16, "OblyTile"
End If
End If
End If
End If
End If
Err.Clear
End If
誰能告訴我如何隱藏這個黑色窗口或解決?
我在論壇上詢問了該項目的發佈情況,但可能該項目已被放棄,沒有人會回答我。
我設置像你說的WScript作爲deafult程序來執行腳本,但它沒有鍛鍊,我嘗試,而不是一個的WScript和CSCRIPT它可以幫助沒有窗口彈出。如果某人遇到同樣的問題,只需在管理員的cmd中輸入:** cscript // H:cscript // S ** –