C # runs batch file, command not recognized

I applied a method in my C # program to run a batch file that runs a virus scan on any downloaded files;

public static Int32 ExecuteCommand(String filePath, Int32 Timeout){
    Int32 ExitCode;
    ProcessStartInfo ProcessInfo = new ProcessStartInfo();
    ProcessInfo.CreateNoWindow = true;
    ProcessInfo.UseShellExecute = true;
    ProcessInfo.FileName = filePath;
    Process proc = Process.Start(ProcessInfo);
    proc.WaitForExit(Timeout);
    ExitCode = proc.ExitCode;
    proc.Close();
    return ExitCode;
 }

Ok now my batch file;

@ECHO OFF
c:
cd "..\AVG\AVG9\"
avgscana.exe /SCAN="..\learninglounge.com.solar.quarantine\" /REPORT="..\learninglounge.com.solar.antivirus\virusReports\report.txt"

EDIT: I have a fully qualified link to avg exe and directories, but here they are replaced .. for publication purposes on stackoverflow. Sorry if this caused confusion.

, - . , . #, 2; . , . , , , . -, ?

+3
4

, , id , , , + .

.

0

, avgscana.exe , "" . bat Windows, , bat. , avgscana.exe , .

.Net-, ( , , .Net-). .Net- , bat, , . bat Environment.CurrentDirectory .Net- .

+1

HAve , , cmd. , . . (vista windows 7), .

0

:

c:
cd "..\AVG\AVG9\"
avgscana.exe 
  /SCAN="..\learninglounge.com.solar.quarantine\"
  /REPORT="..\learninglounge.com.solar.antivirus\virusReports\report.txt"

, "current" C: . . avgscana.exe .

, CD ? CD (cd "c:\wherever\avg\avg9 \" ), , avgscana.

- , avgscana.exe , , / / , 2.

!

0

All Articles