SBX - Search With Button

SBX - Forum Post Title

Run executable PDF signing tool by code

Dynamics 365 Business Central Forum

Mehdi38 asked a question on 11 Jun 2019 3:21 AM

Question Status

Suggested Answer

Hi 

I need help to run a .exe file with below parameters.

pdfpowertool.exe /input <inputfile> /output <outputfile> /signcertificate pdftestcertificate.pfx /signpassword fisk1234 /sign


BR
Mehdi
Reply
I Gusti Made Ari Permadi responded on 11 Jun 2019 4:13 AM
My Badges
Suggested Answer

If you are on Premise , you can use dot net .

sample :

Execute := Execute.ProcessStartInfo('D:/pdfpowertool.exe', '/input <inputfile> /output <outputfile> /signcertificate pdftestcertificate.pfx /signpassword fisk1234 /sign');
Execute.RedirectStandardError := TRUE;      
Execute.RedirectStandardOutput := TRUE;     
Execute.UseShellExecute := FALSE;
Process := Process.Process;                  
Process.StartInfo(Execute);
Process.Start;

Name	   DataType	Subtype	Length
Process    DotNet	System.Diagnostics.Process.'System, Version=4.0.0.0, 
                        Culture=neutral, PublicKeyToken=b77a5c561934e089'	
Execute	   DotNet	System.Diagnostics.ProcessStartInfo.'System, Version=4.0.0.0, 
                        Culture=neutral, PublicKeyToken=b77a5c561934e089'	


Reply
I Gusti Made Ari Permadi responded on 11 Jun 2019 4:13 AM
My Badges
Suggested Answer

If you are on Premise , you can use dot net .

sample :

Execute := Execute.ProcessStartInfo('D:/pdfpowertool.exe', '/input <inputfile> /output <outputfile> /signcertificate pdftestcertificate.pfx /signpassword fisk1234 /sign');
Execute.RedirectStandardError := TRUE;      
Execute.RedirectStandardOutput := TRUE;     
Execute.UseShellExecute := FALSE;
Process := Process.Process;                  
Process.StartInfo(Execute);
Process.Start;

Name	   DataType	Subtype	Length
Process    DotNet	System.Diagnostics.Process.'System, Version=4.0.0.0, 
                        Culture=neutral, PublicKeyToken=b77a5c561934e089'	
Execute	   DotNet	System.Diagnostics.ProcessStartInfo.'System, Version=4.0.0.0, 
                        Culture=neutral, PublicKeyToken=b77a5c561934e089'	


Reply

SBX - Two Col Forum

SBX - Migrated JS