Home | Troubleshooting |  Quick Setup  |  Cisco How to  |  Data Recovery  |  Forums   | Blog | IT Exam Practice | Services  | About Us | Chicagotech MVP  | Search  | Contact Us  |                  Laptop for rent: $35 per day plus $10 for additional day

rental
 

 

How to collect username

Situation: We run an old DOS and would like to know how many users use it. How can we add  commands in the program batch file to collect all usernames? And save all them into a txt file.

Solution:

@echo off

echo %date% %time% Program: %0 User: %username% >>\\chicagotech\ms-mvps\username.txt

Here chicagotech is the server name and ms-mvps is the shared name.

Post your questions, comments, feedbacks and suggestions

Related Topics

How to run a program if existing a file name ms-mvps

Previous Page   Next Page
 

 


 

 

Hit Counter   This web is provided "AS IS" with no warranties.
Copyright © 2002-2018 ChicagoTech.net, All rights reserved. Unauthorized reproduction forbidden.