信 誉 值:  46

解决方案 »

  1.   

    private void Button1_Click(object sender, System.EventArgs e)
    {
    try
    {
    Process pp1 = new Process();
    pp1.StartInfo.WorkingDirectory = @"d:\abgif";
    pp1.StartInfo.FileName = @"d:\gif\ab.bat";//调用产生lap.gif图象文件
    pp1.StartInfo.Arguments = @"d:\gif\" + @"d:\gif";
    pp1.StartInfo.UseShellExecute = false;
    pp1.StartInfo.RedirectStandardOutput = true;
    pp1.StartInfo.CreateNoWindow = true;
    pp1.Start ();
    pp1.WaitForExit();  
    }
    catch 
    {

    }
    }
    这段程序可能有多个用户同时调用,但是只产生一个LAP.GIF图象文件.如何只让一个用户调用.