Re: C# and System.Diagnostics.Process.Start



Here is a possible solution that I found.

// First create a ProcessStartInfo object.
// First parameter the rundll32.exe command.
// Second parameter the shimgvw.dll command along with the file name.
System.Diagnostics.ProcessStartInfo f = new
System.Diagnostics.ProcessStartInfo
("C:\\windows\\system32\\rundll32.exe",
"C:\\windows\\system32\\shimgvw.dll,ImageView_Fullscreen " +
fileName.TrimEnd (null));
try
{
// Pass the ProcessStartInfo object to the Start function.
System.Diagnostics.Process.Start (f);
}
catch (Exception ex)
{
System.Diagnostics.Debug.WriteLine (ex.ToString ());
}

.



Relevant Pages

  • Re: passing a number as parameter1 to the script
    ... > I have been using the following command recently. ... > of days as the first parameter to the script and output will be list of ... > Here is the script I wrote and it gives me an error that I dont know ...
    (comp.unix.shell)
  • Re: Changing of fonts
    ... > You have to use the \fontsizecommand. ... but the depth is used only for the letters of the alphabet that ... > to make sure you can accommodate the extra depth. ... The first parameter of \fontsize is the nominal font size (which may ...
    (comp.text.tex)
  • Re: [opensuse] No sux in 11.0?
    ... When you enter a command, the typed command name is the first parameter passed to the app. ... So, su, when called via a "sux" symlink could take different action, than when called with "su", as that first parameter will be different. ...
    (SuSE)
  • Filter using multiple fields
    ... I would like to implement a filter on a form (using a command button) where ... the first parameter would ask for a code; ... the form need to refresh to ONLY show these records. ...
    (microsoft.public.access.formscoding)
  • Re: [OpenVMS Alpha V7.3-2] Strange BACKUP message
    ... > And even when moving /IMAGE from the first parameter to the DCL verb, ... variations of your command, and they all work fine (as they always ...
    (comp.os.vms)