在Windows Server 2003下使用wscipt从.asp文件运行.exe
[这是最初张贴在stackoverflow.com,但可能更适合在这里,我敢肯定这是一个服务器configuration问题。 道歉,如果这被认为是不好的forms。] 作为我们的数据库修订控制(和自动安装)过程的一部分,我们需要能够从ASP页面内的各种.sql文件运行sqlcmd.exe。 我正在使用的代码是: Dim cmd : cmd = "sqlcmd -S " & DATABASE_SERVER & " -U " & DATABASE_UID & " -P " & DATABASE_PWD & " -d " & DATABASE_NAME & " -i """ & scriptPath & """ -b" Dim wshShell : Set wshShell = Server.CreateObject("WScript.Shell") Dim return : return = wshShell.Run(cmd, 0, […]