Sign in to follow this  
Followers 0
mega128

Running a VBS from autoIt

2 posts in this topic

Hi all,

I am trying to call a VBS by clicking on the exe file on a UNC path (server).

If I click on the complied exe file on local machine I get not errors. If I copy the exe file to server, I get following error message. I tried wscript and cscript but neither works for me.

RunAsSet("LocalAdminAcccount",@ComputerName,"password")

RunWait('cscript.exe "C:\Temp\DNSsuffixes.vbs"')

RunAsSet()

Line 0 (File "\\abc\test\DNS.exe")

RunWait('cscript.exe "C:\Temp\DNSsuffixes.vbs"')

Error: Unable to execute the external program

The directory name is invalid.

Please help. muttley

Share this post


Link to post
Share on other sites



You should provide the full script to cscript.exe or wscript.exe or supply the working directory.

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