用心计较般般错 安心自守事事宽

cgl 坚持、努力终有所获
  新随笔  :: 管理
        public static void viewPicFromWindows(string pPicPath)
        {
            if (pPicPath!="" && System.IO.File.Exists(pPicPath))
            {
                string str = pPicPath;
                try
                {
                    Process process = new Process
                    {
                        StartInfo = { FileName = str, Arguments = @"rundll32.exe C:\WINDOWS\system32\shimgvw.dll,ImageView_Fullscreen", UseShellExecute = true, WindowStyle = ProcessWindowStyle.Hidden }
                    };
                    process.Start();
                    process.Close();
                }
                catch (Exception exception)
                {
                    
                }
            }
        }