PDA

View Full Version : VS.NET and command line build



johnludlow
06-07-2004, 10:59 AM
Hi, all

(apologies for the slightly off-topic nature of this, but I figured somebody here would know the answer to this)

I have the following vbscript code:



Dim WshShell
Set WshShell = WScript.CreateObject("WScript.Shell")

Dim DevEnv
DevEnv = "C:\Program Files\Microsoft Visual Studio .Net 2003\Common7\IDE\devenv.exe"

WshShell.Run (DevEnv)


This is an excerpt from a larger script which runs the VS.NET 2003 IDE from the command line (with the objective of automating the build of my VS project).

However, the script host complains that the file does not exist. I've checked and it does exist - in fact, I can copy and paste that path into Start>Run, and it will run the file. I reckon that the period in ".Net" is causing it to fail - perhaps it's looking for the period to get the file extension or something.

Anybody have a workaround for this?

I've considered environment variables and reinstalling VS into a path that doesn't contain periods.

Any help is greatly appreciated.

Thanks

johnludlow
06-07-2004, 12:07 PM
I found a workaround in the CurrentDiretory property.

thanks