Archive: Add and Cancel a Network Drive


Add and Cancel a Network Drive
hi @all,

It's possible to add and Cancel a Network Drive with NSIS.
(Maybe a Plugin includes the WNetAddConnection and WNetCancelConnection)

greets
Amun


I am not sure if this is what you are asking but here goes...

I add and remove network drives in my scripts. I do this with exec and the command "net use".

Here is a snippet of how I add a Q: drive through windows

Exec '"net" "use" "Q:" "\\server\rootDirectory" "/user:username" "password"'


And here is how I remove that Q: drive
Exec '"net" "use" "Q:" "/delete"'


Q: is just an example... it can be any drive letter not in use.

Thanks, it works