We help IT Professionals succeed at work.

Third party utility

shrihalbe
shrihalbe asked
on
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
Comment
Watch Question

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

Author

Commented:
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
just pass the string as you will do in cmd prompt to the shell function

Commented:
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

Author

Commented:
Hello Hemanth,
 thank you again

Shri
 

Explore More ContentExplore courses, solutions, and other research materials related to this topic.