Line number 10... it takes (from the output of Net Session) characters 63, 64, 65, 66, and 67 and sets them to the variable @IDLE. Then it kills all sessions that do not have " 0" in the idle column... Take out line 1 (The "@Echo Off") and add a line before "EndLocal" that says "Pause" (no quotes) and you will get to see the output for each session... Hope this helps, Glenn Sullivan, MCSE+I MCDBA David Clark Company Inc. -----Original Message----- From: Sorin Srbu [mailto:Sorin.Srbu@xxxxxxxxxxxxx] Sent: Thursday, May 08, 2003 3:27 AM To: windows2000@xxxxxxxxxxxxx Subject: [windows2000] Re: Upgrade win2k pro to win2k server? On Wed, 7 May 2003 14:15:37 -0400, Sullivan, Glenn wrote: >FYI, the first script simply does a NET SESSION command, looks at the "IDLE" >column, and closes those sessions where Idle is not 0. >The second script does a NET FILE command, looks at the "File Name" column, >and if it is the right file, closes it. How does it know what column is the idle-column?? BW, Sorin # Sorin Srbu, Systems Engineer Web: http://www.farmfak.uu.se/organisk/ # Dept of Medicinal Chemistry, Phone: +46 (0)18-4714482 >> 5 signals >> GSM # Div of Org Pharm Chem, Mobile Phone: +46 (0)701-718023 # BMC, Box 574, Uppsala University Fax: +46 (0)18-4714474 # SE-751 23 Uppsala, Sweden Visit: BMC, Husargatan 3, D5:512b # # Public PGP key available on request. ================================== To Unsubscribe, set digest or vacation mode or view archives use the below link. http://thethin.net/win2000list.cfm ================================== To Unsubscribe, set digest or vacation mode or view archives use the below link. http://thethin.net/win2000list.cfm