Net drive CONNECT - < netcondrive >() ... [Pro]
Net drive CONNECT <netcondrive>("Drive letter","Network path","Login name","Password","Restore at next logon") Available in: Professional edition
|
Maps (connects) a network folder to local drive.
|
#
|
Parameter name
|
Parameter description
|
1
|
Drive letter
|
Drive you want to map the network folder to (e.g., "X:"). It must be one letter followed by : .
|
2
|
Network path
|
Network folder (for example, "\\server\mydir").
|
3
|
Login name
|
User name to use to gain access rights to the network folder.
|
4
|
Password
|
Password to use to gain access rights to the network folder.
|
5
|
Restore at next logon
|
Restore at next logon: 0 - the drive is not mapped at next logon 1 - the drive will be automatically mapped at next logon
|
|
|
Example (Macro Steps):
|
1
|
<#> <#> This macro maps a network directory to local drive.
|
2
|
Macro execution: ONLY COMMANDS
|
3
|
Net drive CONNECT "X:" = "\\server\mzdir" (Login name=john, Restore at next logon=No)
|
|
Example (Plain Text):
<#> This macro maps a network directory to local drive.
<#>
<cmds>
<netcondrive>("X:","\\server\mzdir","john","jpwd",0)