S
Slickuser
Hi,
How can I fixed the error below so that I can run "devenv" in Perl?
Thanks.
setVSEnv();
system("devenv /Build Debug \"ProjectABC.sln\" /out \"C:/log_out.txt
\");
Error:
Setting environment for using Microsoft Visual Studio 2005 x86 tools.
'devenv' is not recognized as an internal or external command,
operable program or batch file.
sub setVSEnv
{
## VS 2005
my $VS_Path = $ENV{'VS80COMNTOOLS'};
if (defined($VS_Path))
{
system("call \"%vs80comntools%vsvars32.bat\" ");
}
else
{
## VS 2003
$VS_Path = $ENV{'VS71COMNTOOLS'};
if (!defined($VS_Path))
{
print STDERR "Visual Studio doesn't exist.\n";
exit(0);
}
system("call \"%vs71comntools%vsvars32.bat\" ");
}
}
How can I fixed the error below so that I can run "devenv" in Perl?
Thanks.
setVSEnv();
system("devenv /Build Debug \"ProjectABC.sln\" /out \"C:/log_out.txt
\");
Error:
Setting environment for using Microsoft Visual Studio 2005 x86 tools.
'devenv' is not recognized as an internal or external command,
operable program or batch file.
sub setVSEnv
{
## VS 2005
my $VS_Path = $ENV{'VS80COMNTOOLS'};
if (defined($VS_Path))
{
system("call \"%vs80comntools%vsvars32.bat\" ");
}
else
{
## VS 2003
$VS_Path = $ENV{'VS71COMNTOOLS'};
if (!defined($VS_Path))
{
print STDERR "Visual Studio doesn't exist.\n";
exit(0);
}
system("call \"%vs71comntools%vsvars32.bat\" ");
}
}