call pptconv.exe from C# code

Please by following steps to call pptconv.exe from C# code and run the conversion inside an interactive user account,

1. please download a free runas tool from following URL,

2. please run it in Command Line window to test it first,

lsrunas /user:administrator /password:s3cr3tp@ssw0rd /domain:. /command:"C:\pptconv.exe -$ XXXXXXXXXXXXXXXXXXX C:\in.ppt C:\out.swf" /runpath:C:\

You need change the password for "administrator" user account in your system.

3. if above command line can convert your PPT file to SWF file properly, you can use following C# code to call it,

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;

namespace ConsoleApplication1
class Program
static void Main(string[] args)
Process proc = new Process();
proc.StartInfo.FileName = @"C:\\lsrunas.exe";
string strArguments = "";
strArguments += "/user:administrator /password:s3cr3tp@ssw0rd /domain:. /command:""C:\\pptconv.exe -$ XXXXXXXXXXXXXXXXXXX C:\\in.ppt C:\\out.swf"" /runpath:C:\\";
proc.StartInfo.Arguments = @strArguments;

4. OK, you can run pptconv.exe from administrator user account to convert PPT to SWF file now.
VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

Verify Code   If you cannot see the CheckCode image,please refresh the page again!