Your script will map a drive to a drive that is local on the machine it is mapped from which is of no use imho.

Quote:


....
In my script, if the user is on a laptop, i want to connect some drives locally
eg. f: \\Server-Bla\Something with \\PC-no\C-drive\anything





Here you say you want to map to a drive on a server. This makes more sense to me.

Code:

If Exist ("C:\Local_Site\*.*")
Use F: /Del /PERSISTENT
Use F: "\\servername\share"
EndIf



So this will do that.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.