Calling a VBScript in a directory

g28dman

Registered User.
Local time
Today, 01:28
Joined
Nov 4, 2005
Messages
84
Hello, I have a VBScript that when clicked on opens the command prompt and fires code to upload a query to my website.

What I would like to do is place a command button on my form that will call the script to run instead of having to go and click on it.

I have searched, maybe using wrong terms, but havent been able to get the right code to do this

any help to call this script from a command button would be appreciated.
 
Thanks for pointing me in the right direction.
Treason said:
do a search for Shell ... you'll find it

When calling the visual basic script you need wscript.exe (this is what I was having problems with)

So for all beginners like me it looks like:

Shell "wscript.exe C:\path\to\your\script.vbs"
 

Users who are viewing this thread

Back
Top Bottom