楼上的说的对,在进程里看他是rundll32.exe这个系统文件

解决方案 »

  1.   

    调用命令:
    C:\WINDOWS\system32\rundll32.exe /d shell32.dll,Control_RunDLL timedate.cplC#代码:
    Process myProc = new Process();
    myProc.StartInfo.FileName = "cmd.exe";
    myProc.StartInfo.UseShellExecute = false;
    myProc.StartInfo.RedirectStandardInput = true;
    myProc.StartInfo.CreateNoWindow = true;
    myProc.Start();
    myProc.StandardInput.WriteLine("C:\\WINDOWS\\system32\\rundll32.exe /d shell32.dll,Control_RunDLL timedate.cpl");
    myProc.StandardInput.WriteLine("exit");
    (好罗嗦喔,呵呵,不知道哪个大哥还有什么简单的办法呢?像在VB.net里就有个Shell函数。而在C#里??)VB.net代码:
    Public myProc As Integer
    myProc = Shell("C:\WINDOWS\system32\rundll32.exe /d shell32.dll,Control_RunDLL timedate.cpl")
      

  2.   

    private void button1_Click(object sender, System.EventArgs e)
    {
    System.Diagnostics.Process.Start("rundll32.exe","/d shell32.dll,Control_RunDLL timedate.cpl");
    }