Sign in to follow this  
Followers 0
ElGuapo

RunWait Problem

2 posts in this topic

I inherited a bunch of scripting programs when someone left. They have one kix program in particular, which I will call test.ext, that has to run with alternate credentials. The program exists in the NETLOGON share directory on all domain controllers, but I'll use DC1 here as a test.

After the AUTOIT program is compiled and ran, an error message comes up that says "the directory name is invalid.

This problem is driving me batty. It is a very simple program, yet I cannot get it to work.

RUN TEST PROGRAM

RunAsSet("<adminuser>","DC1","<password>",2)

RunWait("\\DC1\NETLOGON\Test.exe")

RunAsSet()

Using Windows Run command, I can pull up \\DC1\NETUSER with no problems and see the TEST.EXE program. Authenticated users have read rights to that directory.

Any ideas?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Call me crazy, but ...

RunWait("\\DC1\NETLOGON\Test.exe")

and

I can pull up \\DC1\NETUSER

isn't the same location. Is this a typo in your explanation?

Edited by Blue_Drache

Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

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