mega128 Posted July 18, 2008 Posted July 18, 2008 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
weaponx Posted July 18, 2008 Posted July 18, 2008 You should provide the full script to cscript.exe or wscript.exe or supply the working directory.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now