Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/sql-server-2005/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Vbscript 如何在vbs中使用路径_Vbscript_Obs Studio - Fatal编程技术网

Vbscript 如何在vbs中使用路径

Vbscript 如何在vbs中使用路径,vbscript,obs-studio,Vbscript,Obs Studio,我叫诺亚。我想知道我的OBSCommand是否位于C:\Users\noahs\Desktop\yt\macros\OBSCommand\OBSCommand.exe中 如何将其添加到我的vbs文件中?我的VBS文件代码如下 Set WshShell = CreateObject("WScript.Shell") WshShell.Run "OBSCommand.exe /server=127.0.0.1:4444 /password=""&qu

我叫诺亚。我想知道我的OBSCommand是否位于C:\Users\noahs\Desktop\yt\macros\OBSCommand\OBSCommand.exe中 如何将其添加到我的vbs文件中?我的VBS文件代码如下

Set WshShell = CreateObject("WScript.Shell")
WshShell.Run "OBSCommand.exe /server=127.0.0.1:4444 /password="""" /scene=""Main"""

在一行中:
MsgBox CreateObject(“Scripting.FileSystemObject”).FileExists(“C:\Users\noahs\Desktop\yt\macros\obcommand\obcommand.exe”)
这是否回答了您的问题@user692942不,没有。@Noah你能详细说明一下吗?“不,它不是”不是很具有描述性(有点像这个问题)。您需要检查某个文件是否存在于某个位置,这就是链接副本解释的方法。