Link to home
Start Free TrialLog in
Avatar of shrihalbe
shrihalbe

asked on

Third party utility

Hello ,
actually want to run PDF third party Compression utility on the PDf file then i have to attach that file to the document. that third party utility has dos based command that i want to execute from lotus script. how can i do that.any Help would be appreciated.

Thanks,
shrirang
Avatar of HemanthaKumar
HemanthaKumar

Using shell function you can run the utility.

I hope this utlity creates pdf file, once it is on the disk use 'embedobject' to attach the file to the document

~Hemanth
Avatar of shrihalbe

ASKER

Hello Hemanth,
  The Dos Command has some parameteres too. so how can i send the that parameters to that command using the lotus script.

The command is like this

CVistaC [<Compression Options>] -in <Input Directive> [<Input Options>]  [-out <Output directive>[<Output Options>]]



Thanks,
shri
ASKER CERTIFIED SOLUTION
Avatar of HemanthaKumar
HemanthaKumar

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Dim taskId As Integer
taskId% = Shell("CVistaC [<Compression Options>] -in <Input Directive> [<Input Options>]  [-out <Output directive>[<Output
Options>]]", 1)

The last value is the type of window you want opened:
     1, 5, or 9     Normal with focus     SHELL_NORMAL_FOCUS
     2     Minimized with focus (default)     SHELL_MIN_FOCUS
     3     Maximized with focus     SHELL_MAX_FOCUS
     4 or 8     Normal without focus     SHELL_NORMAL_NO_FOCUS
     6 or 7     Minimized without focus     SHELL_MIN_NO_FOCUS

Taskid% is the value returned when the program is running, on windowsNT or OS/2 the value is 33, so test the ID for errors.  Also, the rest of your script will execute without waiting for the program to finish it's task.

Does this help?
marilyng
Hello Hemanth,
 thank you again

Shri