Lakshmi Subramanian
2004-02-12 02:54:36 UTC
Hi,
I am trying to invoke a vs.net command prompt from a
vbs file. Following is the code.
Dim WshShell
Set WshShell = Wscript.CreateObject("WScript.shell")
str = "cmd /c cscript " & "%comspec% /k" & "C:\Program
Files\Microsoft Visual Studio .NET\Common7
\Tools\vsvars32.bat"
return1 = WshShell.Run(str, 2, True)
str = str & "sn -k a.snk"
return1 = WshShell.Run(str, 2, True)
This does start the VS.NET command prompt, but does not
execute the command in it, but returns an error code.
Please let me know how to get this done.
Thanks and Regards,
Lakshmi.S
I am trying to invoke a vs.net command prompt from a
vbs file. Following is the code.
Dim WshShell
Set WshShell = Wscript.CreateObject("WScript.shell")
str = "cmd /c cscript " & "%comspec% /k" & "C:\Program
Files\Microsoft Visual Studio .NET\Common7
\Tools\vsvars32.bat"
return1 = WshShell.Run(str, 2, True)
str = str & "sn -k a.snk"
return1 = WshShell.Run(str, 2, True)
This does start the VS.NET command prompt, but does not
execute the command in it, but returns an error code.
Please let me know how to get this done.
Thanks and Regards,
Lakshmi.S