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:[username@dotted domain name]
[/SMARTCARD]
[/SAVECRED]
[[/DELETE] [/PERSISTENT:{YES NO}]]
NET USE {devicename *} [password *] /HOME
NET USE [/PERSISTENT:{YES NO}]
The syntax of this command is:
NET USE
[devicename *] [\\computername\sharename[\volume] [password *]]
[/USER:[domainname\]username]
[/USER:[dotted domain name\]username]
[/USER:[username@dotted domain name]
[/SMARTCARD]
[/SAVECRED]
[[/DELETE] [/PERSISTENT:{YES NO}]]
NET USE {devicename *} [password *] /HOME
NET USE [/PERSISTENT:{YES NO}]
Example
net use Y: /delete
net use Y: \\192.168.1.100\Folder1\Folder2 /USER:192.168.1.100\username password
start Y:\Folder3\Application.exe
net use Y: \\192.168.1.100\Folder1\Folder2 /USER:192.168.1.100\username password
start Y:\Folder3\Application.exe
No comments:
Post a Comment