//nologo //e:vbscript "%~f0" & exit /b WScript. I would like to create another script that uses one of the functions in the main script. Parameters are positional, and can be passed by value or by reference. Again, he got some help. You may have to register before you can post: click the register link above to proceed. OK, so we know how to use the existing functions and modules, but how do we create a new function? Simply by defining it. So if I change this script to call a stored proc with out parameters it works fine it only has a problem once I started to add a call to a stored proc that has input parameters. With Safari, you learn the way you learn best. A lot of the scripts contain common code and I would like to put this common code into its own separate script (process) The issue I am having, which is understandable, is that variable information in a 'called script' is not available to the main script. I know it sounds strange, but my idea is creating a single text file which contains a VBScript and a Batch Script within it, i. There are also loops that repeat statements a. a3x (using the Run function as explained here), and pass him a parameter (lets call this script child. Call is an internal command and is available in the following Microsoft operating systems. strComputer = ". We use the CALL keyword to invoke the quasi function labelled :tee. The problem is that before we can run (write to file), we must learn to crawl (create the folder). Passing parameters from a HTML Page to VBScript. ps1 file is shown here. You may have to register before you can post: click the register link above to proceed. Hi, I have two python scripts and I want to call 1st python script and use the output of this script in another python script. The third is a boolean value the indicates whether or not you script should wait for execution to complete before continuing to the next statement. My knowledge of VBScript is limited to Excel environment. Could some one give me guidance of how to call a function or sub from another vbscript? I have two separate vbscript. It will prompt you for the input usernames "semicolon separated" like you would have used in the email. The below code was working fine but it was taking so munch time nearly 45 sec to get. I've tried using 'Call ExcelExport' and specify a full file path but the file is never created. call :\ Examples. This guide demonstrates how to implement optional arguments in VBScript. ps1 within this PS1 I call another PS1 named for example testing.