c:\dististock\bin\dististock4.exe pn=MAX232ACSE+In a more generalized form that application developers will be familiar with, the command line needs to be formatted like this:
path_to_dististock_bin_directory\dististock4.exe [pn=part_number_to_search]If DistiStock is not already running, DistiStock will be launched and the search will begin.
If DistiStock is already running, the DistiStock window will come to the top and the search will begin. Any searches still in progress will be cancelled.
The part number entered on the command line must be at least 3 characters long. If not, DistiStock will still open but you will get an error message asking you to enter at least 3 characters.
To use this example you need:
<input type="text" name="partnumber" id="partnumber"> <button type="button" onclick="startSearch()">Start Searching</button>The following javascript function will open DistiStock on the part number you entered and begin the search when you click Start Searching.
function startSearch() { var pn = document.getElementById("partnumber").value; var shell = new ActiveXObject("Shell.Application"); var app = 'C:\\DistiStock\\bin\\Dististock4.exe'; var params = "pn=" + pn; var workdir = 'C:\\DistiStock\\bin'; shell.ShellExecute( app, params, workdir, "open", "1"); }
For .NET applications, refer to
Process.Start
For Native windows applications, refer to
ShellExecute or
ShellExecuteEx.
Copyright © 2010-2024 Smart Data Works Ltd. All rights reserved.
All logos and trademarks are the property of the respective trademark owners. ® and ™ denote registered trademarks in the United States and other countries.