Re: User login
- From: "Pegasus \(MVP\)" <I.can@xxxxxxxxxx>
- Date: Wed, 12 Mar 2008 16:19:47 +0100
IMHO, far too few people probe a little deeper when looking
for batch file answers here. Most are happy to use the code
without really understanding what it does.
When you type set /? then you will see that the command
has the ability to perform substring functions. The %time%
variable looks like so: 16:17:38.67, which is fairly useless
for the OP's purpose, so how about using only the 5 left-most
characters? This command will do it:
echo %time:~0,5%
"JohnB" <jbrigan@xxxxxxxxx> wrote in message
news:uhtaK3EhIHA.1188@xxxxxxxxxxxxxxxxxxxxxxx
Ok, it's the BrainSponge again....
In the line where you're sending the screen output to a file, what does
this
part mean: ":~0,5% "
"Pegasus (MVP)" <I.can@xxxxxxxxxx> wrote in message
news:uY60VJ8gIHA.536@xxxxxxxxxxxxxxxxxxxxxxx
"qq" <qq@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:2F420F91-1C24-4D94-9AE2-2FF81D4C501A@xxxxxxxxxxxxxxxx
Hi All,
I want to run a login script file for certain users. How can I know
these
users has login to domain? How can I track these users' login status?
Thanks in advance,
You could get these users to execute a modified logon script
that contains this line of code:
echo %date% %time:~0,5% %UserName% >>
\\YourServer\SomeShare\Logs\logon.txt
.
- Follow-Ups:
- Re: User login
- From: JohnB
- Re: User login
- References:
- Re: User login
- From: Pegasus \(MVP\)
- Re: User login
- From: JohnB
- Re: User login
- Prev by Date: Re: DST time change
- Next by Date: Re: Managing Logon Servers
- Previous by thread: Re: User login
- Next by thread: Re: User login
- Index(es):
Relevant Pages
|