Commands & Syntax > Commands > Networking/Web/E-mail >

www.MacroToolworks.com

Net drive DISCONNECT - < netdiscondrive >() ... [Pro]

 

Net drive DISCONNECT
<netdiscondrive>("Drive letter",Restore at next logon)
Available in: Professional edition

Disconnects a network folder from a local drive.

 

#

Parameter name

Parameter description

1

Drive letter

Drive you want to remove (e.g., "X:"). It must be one letter followed by : .

2

Restore at next logon

Restore at next logon:
0 - the drive will not be automatically mapped at next logon
1 - the drive will be automatically mapped at next logon

 

Example (Macro Steps):

 

1

<#> <#> This macro disconnects drive from a network folder

2

Macro execution: ONLY COMMANDS

3

Net drive DISCONNECT "X:", Restore at next logon=" 0"

Example (Plain Text):

 

<#> This macro disconnects drive from a network folder

<#>

<cmds>

<netdiscondrive>("X:", 0)