Quote:

I think it will work too on the Win98, but i have to delete first the mapped drives that already were configured manually, and try the script again, or to add some code that delete all drives in the first line.




Examine the simple script that I provided. It moves the common code (debugging, drive deleting, drive mapping) into a User Defined Function so you only need to write or amend it once. Whenever you attempt to map a drive letter it deletes it first.

Win98 probably doesn't support "deep" mapping, which is where you map to a sub-directory of a share point. You *may* be able to use the DOS "SUBST" command to achieve the same effect once you have mapped the parent directory but I don't have a Win98 box to test on.