Discussion Locked

time logon script

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

i`m running a time logon script on NT server
@echo off
cls
net time\\serevrname /set /y
cls

it`s working fine but whenever clients logon to server ,script runs in a black dos box --it looks ugly i want to run this script silently without dosbox .how i can do this --please explain in detail as i`m not scripting guru.

5 replies

by acattr

Login scripts is the most efficient way. If you don't want users to see this, you can go to the command line and type:

at 12:00pm /every:m,t,w,th,f net time\\serevrname /set /y

It will run this command in the background at 12:00pm every morning.

by sschnege

You could also do something along the lines of a START /MIN CMD /C "NET TIME \\servername /set /y" to make the DOS box minimize itself while running. It's still visible on the Taskbar, though.

FYI, CMD /C makes the window go away when processingis completed. If you want the window to remain (while testing, for example), use CMD /K instead.

This discussion is closed to new replies.