RUN /n NET TIME <servername> /SET /YESworks fine, but flashes up a DOS window.
DECLARE INTEGER CreateProcess IN kernel32; STRING lpApplicationName,; STRING lpCommandLine,; INTEGER @ lpProcessAttributes,; INTEGER @ lpThreadAttributes,; INTEGER bInheritHandles,; INTEGER dwCreationFlags,; INTEGER @ lpEnvironment,; STRING lpCurrentDirectory,; STRING lpStartupInfo,; STRING @ lpProcessInformation lpApplicationName = "NET" lpCommandLine = " TIME " + lcServerName + " /SET /YES" lpProcessAttributes = 0 lpThreadAttributes = 0 bInheritHandles = 1 dwCreationFlags = 0 lpEnvironment = 0 lpCurrentDirectory = "c:\" lpStartupInfo = REPLI (Chr(0), 250) lpProcessInformation = REPLI (" ", 250) CreateProcess (; lpApplicationName,; lpCommandLine,; @lpProcessAttributes,; @lpThreadAttributes,; bInheritHandles,; dwCreationFlags,; @lpEnvironment,; lpCurrentDirectory,; lpStartupInfo,; @lpProcessInformation)