These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Running EXE file through Custom menu

umakant
Registered: Dec 28 2006
Posts: 4

hi,
i have created a custom menu called Upload Loan Documents using the following code.
 
app.addMenuItem({cName:"-", cParent:"Help", cExec:" "});
app.addMenuItem({cName:"Upload Loan Documents", cParent:"Help",
cExec:"app.launchURL('http://localhost/Product/mainpage.aspx');Browse();"});
 
Now i want to run the executable EXE file on click of that Menu. Also i want to save the currently active pdf file.
 
can we save the file using the app.browseForDoc method.
 
Pls help me.

My Product Information:
Acrobat Pro, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
What EXE file? Anyway you can't run an EXE from inside Acrobat.

The browseForDoc() function simply collects a path from the user, this is all that it does. To save a file you have to use the "doc.saveAs()" function.

Thom Parker
WindJack Solutions
[url=http://www.windjack.com]www.windjack.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://partners.adobe.com/public/developer/en/acrobat/sdk/
pdf/javascript/AcroJS.pdf]Acrobat JavaScript Reference[/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script