简单的VB查询 [英] simple VB query
本文介绍了简单的VB查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
从命令行我得到SDDL用于假脱机服务。
那么为什么不在下面工作?
套装WshShell = WScript.CreateObject(" WScript.Shell")
WshShell.Run"%comspec%/ c sc sdshow spooler",0,true
当我尝试为
时,
设置WshShell = WScript.CreateObject(" WScript.Shell")
result = WshShell .Run("%comspec%/ c"& " sc sdshow spooler",0,true)
wscript.echo结果
i得到的结果返回'0'。
$
如果我将wshshell.rum设置为1,新的命令窗口会显示结果。
那么为什么不在下面工作?
套装WshShell = WScript.CreateObject(" WScript.Shell")
WshShell.Run"%comspec%/ c sc sdshow spooler",0,true
当我尝试为
时,
设置WshShell = WScript.CreateObject(" WScript.Shell")
result = WshShell .Run("%comspec%/ c"& " sc sdshow spooler",0,true)
wscript.echo结果
i得到的结果返回'0'。
$
如果我将wshshell.rum设置为1,新的命令窗口会显示结果。
解决方案
此论坛适用于Microsoft Project开发。您的问题看起来并不相关,所以请尝试使用Windows脚本论坛:
http://social.technet.microsoft.com/Forums/en-US/ITCG/threads
when running a "sc sdshow spooler" from the command line i get SDDL for spooler service.
so why doesnt below work?
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "%comspec% /c sc sdshow spooler",0,true
also when i try
Set WshShell = WScript.CreateObject("WScript.Shell")
result = WshShell.Run ("%comspec% /c" & "sc sdshow spooler",0,true)
wscript.echo result
i get result returned '0'.
if i set wshshell.rum to 1 the new command window displays the result.
so why doesnt below work?
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "%comspec% /c sc sdshow spooler",0,true
also when i try
Set WshShell = WScript.CreateObject("WScript.Shell")
result = WshShell.Run ("%comspec% /c" & "sc sdshow spooler",0,true)
wscript.echo result
i get result returned '0'.
if i set wshshell.rum to 1 the new command window displays the result.
解决方案
This forum is for Microsoft Project development. Your problem doesn't look related, so try a windows script forum, maybe:
http://social.technet.microsoft.com/Forums/en-US/ITCG/threads
这篇关于简单的VB查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文