我今天开始使用名为“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 ** –