OK. just an update to this. i can already automatically login to a network folder with credentials! i used this one:
Shell("Net Use \\192.168.0.99\IPC$ /user:myusername mypassword", AppWinStyle.Hide, True, 10000)
but when i use this one to delete the credentials, i can still access the network...