Old 20th December 2006, 11:06   #1
Amun
Junior Member
 
Join Date: Aug 2006
Location: Austria
Posts: 6
Send a message via ICQ to Amun
Question 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
Amun is offline   Reply With Quote
Old 20th December 2006, 15:27   #2
scatlin
Junior Member
 
Join Date: Dec 2006
Posts: 1
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
code:
Exec '"net" "use" "Q:" "\\server\rootDirectory" "/user:username" "password"'


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


Q: is just an example... it can be any drive letter not in use.
scatlin is offline   Reply With Quote
Old 21st December 2006, 07:44   #3
Amun
Junior Member
 
Join Date: Aug 2006
Location: Austria
Posts: 6
Send a message via ICQ to Amun
Thanks, it works
Amun is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump