How to launch the program from Visual Basic script? |
|
To launch the program from Visual Basic script add the similar sript to HTML file:
<%@ LANGUAGE = "VBscript" %>
<% OPTION
EXPLICIT %>
<%
Sub MyProcess
dim commandLine, WshShell
commandLine = "c:\2jpeg\2jpeg.exe s=D:\InetPub\wwwroot\TIFes\000009.tif d=D:\InetPub\wwwroot\out -w800 -h1256 -sm1 -coleff(0;10) -sep -ov -nodlg"
Set WshShell =
Server.CreateObject("WScript.Shell")
call WshShell.Run
(commandLine,8,true)
set WshShell=nothing
end sub
call MyProcess
%>
If you want to use the program as a server application you must purchase Business (one application) or Site (multi application) license. Read more...
* This example works the same way with 2GIF, 2TIFF, 2Bitmap, 2TGA, 2PNG and 2WBMP.