1.

Solve : Mapping?

Answer»

hello

I would like to create a batch PROGRAM that maps a drive on a network share and also an other program that de-maps it .
I have tried the "map" command but it doesn't seem to be working, I am using XP PRO French Version

Thank You

AlmnLook into 'net use' ...

C:\>net use /?
The syntax of this command is:


NET USE
[devicename | *] [\\computername\sharename[\volume] [password | *]]
[/USER:[domainname\]username]
[/USER:[dotted domain NAME\]username]
[/USER:[[emailprotected] domain name]
[/SMARTCARD]
[/SAVECRED]
[[/DELETE] | [/PERSISTENT:{YES | NO}]]

NET USE {devicename | *} [password | *] /HOME

NET USE [/PERSISTENT:{YES | NO}]


Hope that is able to help you in moving foward. Your MAP.BAT would look something like
Code: [SELECT]net use Z: \\server\share
Your DEMAP.BAT would look similar to
Code: [Select]net use Z: /deleteThank You,

That is very presise, Much appreciated.

Almn



Discussion

No Comment Found