Sign in to follow this  
Followers 0
newcomtd

Run a script with parameters from VB.NET

1 post in this topic

#1 ·  Posted (edited)

Hello,

I have a working script to automate file upload dialogs in a web browser. The script expects an argument (the name attribute of an html input). I have no trouble running the script from the windows command line. The trouble is that I need to run this script from VB .NET code. I am using AutoItX3Lib which has a Run() function. How do I specify command line parameters in the Run() function in VB?

In my VB function, I have tried:

//Start Function

Dim autoIT As AutoItX3Lib.AutoItX3

autoIT = New AutoItX3Lib.AutoItX3

autoIT.Run("Compiled.exe C:\pathToCompiledScript\compiledScript.exe aTestParameter")

autoIT.Run("C:\Program Files\AutoIt3.exe C:\pathToAu3File\myScript.au3 aTestParameter")

//End Function

Neither of these throw any VB errors, they just don't execute the script.

Thank you

Edited by newcomtd

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0