Home | Troubleshooting |  Quick Setup  |  Cisco How to  |  Wireless  |  Forums   | Site Map | Services  | About Us | Chicagotech MVP  | Search                          

Clearapps network inventory
software.

 

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-2013 ChicagoTech.net, All rights reserved. Unauthorized reproduction forbidden.