💻 Software
"net share xyz /DELETE" fails if a file is in use on that share
Fresh5 days ago
Mar 15, 20267396 viewsConfidence Score0%
0%
Problem
I'm attempting, using NAnt, to disconnect a share (in order to redirect it somewhere else) but my attempt fails: I can't see a way to supply the 'Yes' answer via the command line - there are not /Q switches. The target machine is a Windows 2003 server. Does DOS has an equivalent to the unix 'yes' c…
Error Output
[exec] Starting 'net (SHARE ad3-config /DELETE)' in 'c:\NAntDistributorBuilds\LocalInstallations\ad3config_master_1.0.19.4006' [exec] Users have open…
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: "net share xyz /DELETE" fails if a file is in use on that share
Low Risk
The solution is to supply /Y to force the delete. This isn't documented, unfortunately.
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix