Quantcast
Channel: Forum Microsoft Identity Manager
Viewing all articles
Browse latest Browse all 6944

File process - some files missing in processing

$
0
0

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;
      try
      {
        Console.WriteLine(cmd.Start());
        if (!cmd.WaitForExit(15000))
        {
          skip_delete = true;
        }


jaya


Viewing all articles
Browse latest Browse all 6944

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>