patelajk
asked on
Disconnect Network Drive/ Unistall Software Batch File
Hi
Trying to write batch file that will disconnect a network drive and uninstall a program. I can uninstall the softwate from "Add/Remove Programs" but how do I do this from a batch file.
For the disconnect network drive i have the script below, but it keeps on asking for a confirmation to disconnect how can i make it so it just does it automaticatlly without a confirmation and of course how do I unninstall the software
This is the script so far:
net use q: /delete /persistent:yes
Thanks
Trying to write batch file that will disconnect a network drive and uninstall a program. I can uninstall the softwate from "Add/Remove Programs" but how do I do this from a batch file.
For the disconnect network drive i have the script below, but it keeps on asking for a confirmation to disconnect how can i make it so it just does it automaticatlly without a confirmation and of course how do I unninstall the software
This is the script so far:
net use q: /delete /persistent:yes
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
As for disconnecting the network drive, that's easy.
Try:
ECHO Y|NET USE Q: /DELETE
(Using persistent here is kinda pointless).