File process - some files missing in processing RRS feed

  • Question

  • Hi,

    I am using the below code to create drives on network.

    This exe file is used by ILM as part batch job. The job will pick input files from local drive.

    Query: While executing this job some input files are missing so for them drive is not created. Please let me know what could be the reason and how to resolve? let me know how to avoid file missing without processing?

    System.Diagnostics.Process cmd = new Process();
          cmd.StartInfo.UserName = "ad_user";
          cmd.StartInfo.Domain = "domain";
          cmd.StartInfo.Password = "password";
          cmd.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
          cmd.StartInfo.FileName = @"d:\miis\createdrive.cmd";
          cmd.StartInfo.WorkingDirectory = @"d:\miis\";
          cmd.StartInfo.UseShellExecute = false;
          string these_args = string.Format("{0} {1} {2}", domain, ocgsamaccountname, ocgpathtocreate);
          cmd.StartInfo.Arguments = these_args;
            if (!cmd.WaitForExit(15000))
              skip_delete = true;


    Monday, March 10, 2014 7:37 AM