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:
PowerPoint to Flash Converter hang on password protected PPT file
PowerPoint Converter pptconv.exe return error value -3
PowerPoint file contains a too big WAV file
powerpoint to flash convertor 3.0 help
allow a user to upload a ppt file to my server and then extract the images
Powerpoint to PS
PowerPoint to flash does crash on Windows 2003
How to retain animation effect when converting PPT to SWF