Jump to content

Calling a KIX32 script


shaunex
 Share

Recommended Posts

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

CODE
RunAsSet ("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.

Link to comment
Share on other sites

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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...