CmdAsUser.exe can be downloaded from following web page,
http://www.verydoc.com/download/cmdasuser.zip
Process proc = new Process();
proc.StartInfo.FileName = "C:\test\CmdAsUser.exe";
string strArguments = "Administrator . /p YourPassword /c C:\test\pptconv.exe C:\test\test.ppt C:\test\out.swf"
Console.WriteLine(strArguments);
proc.StartInfo.Arguments = strArguments;
proc.StartInfo.UseShellExecute = false;
proc.StartInfo.CreateNoWindow = true;
proc.StartInfo.ErrorDialog = false;
proc.StartInfo.RedirectStandardOutput = true;
proc.StartInfo.RedirectStandardError = true;
proc.Start();
proc.WaitForExit();
string output = proc.StandardOutput.ReadToEnd();
string error = proc.StandardError.ReadToEnd();
Related Posts
Related posts:
How do I batch convert lot of PowerPoint files to PDF or SWF files at one time?
call pptconv.exe from C# code
powerpoint to flash convertor 3.0 help
PowerPoint to flash does crash on Windows 2003
How to register VeryPDF command line software?
How to convert PPT to flash SWF file?
How to batch convert PowerPoint to SWF?
How to set flash frame when converting PowerPoint to flash