Originally Posted By: bdirkx

....
If a read the script of you i understand that this is a hole new script and i don't need my own script any more is this correct or must i past jour scriptin my own.
....


Yes it is a whole new script and it can replace your script.

 Originally Posted By: bdirkx

....
I have test this script but it is hanging in my dos screen.

Is this normale or must i put a exit on the end of this script to close the dos screen.


The command window should close when the script is done.
It might hang on groups that that the user is a member of but are not in the ini file. A check to see if $numberofdrives holds any data before trying to map drives would be best. Something like:

 Code:
For Each $groups in $groups
	$drives = ReadProfileString("c:\kixwork\mappings.ini", $goup, "NumberOfDrives")	
	If $drives <> ""
		;do all the magic here
	Else
		;no drives to map for this groups so move on the the next group.
	EndIf
Next


As Glenn said he has a fully working version on his website that you might want to give a go. Sure, making something from scratch is a way to learn it but if someone has it done already it's also worth a shot.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.