Exemplo n.º 1
0
 public SubprocessResult Deploying(DeployParms objDeployeParms)
 {
     CommandArgs objCommandArgs = new CommandArgs();
     objCommandArgs.command = "cmd.exe";
     objCommandArgs.Args = GetDeployArgs(objDeployeParms);
     return Subprocess.RunProgram(objCommandArgs);
 }
Exemplo n.º 2
0
 private string GetDeployArgs(DeployParms objDeployeParms)
 {
     string Packagelocation="";// we need to give the package locaion
      string[] DeployeCmdFile=  Common. GetFiles(Packagelocation, ".cmd");
     string packageCommand = string.Empty;
     string pacCommand = ConfigurationManager.AppSettings["Deploy"].ToString();
     packageCommand = string.Format(pacCommand, GetTargetCommand(), DeployeCmdFile.First());
     return packageCommand;
 }