shaunex Posted October 20, 2008 Posted October 20, 2008 Hi All this has had me running around in circles for a while. Trying to call a KIX script on a logonserver but keeps failing to find the file unless I put in the full UNC of this. Script I am using is CODERunAsSet ("username","domain","password") RunWait (@LogonServer & "\netlogon\kix32.exe %logonserver%\netlogon\updates\folder1\folder2\file.kix" , @SW_SHOW) can not see why this would not work this way around! It is fine if I run it from cmd.
Pain Posted October 20, 2008 Posted October 20, 2008 RunWait(@ComSpec & " /c " & @LogonServer & '\netlogon\kix32.exe %logonserver%\netlogon\updates\folder1\folder2\file.kix',@ScriptDir, @SW_SHOW)
shaunex Posted October 21, 2008 Author Posted October 21, 2008 Pain said: RunWait(@ComSpec & " /c " & @LogonServer & '\netlogon\kix32.exe %logonserver%\netlogon\updates\folder1\folder2\file.kix',@ScriptDir, @SW_SHOW) Fails with "CMD.EXE was started with the above path as the current directory. UNC paths are not supported. Defaulting to Windows directory" Then the same previous error I was getting "ERROR : Failed to find/open script [script location]" when the kix script is plainly there.
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