Delete specific folders at UNC locationBatch script to delete specific foldersWindows CMD command to run a...
Why are all my replica super soldiers young adults or old teenagers?
Am I a Rude Number?
Early credit roll before the end of the film
Differences between prior distribution and prior predictive distribution?
How do you voice extended chords?
When can a QA tester start his job?
Do authors have to be politically correct in article-writing?
How to make ice magic work from a scientific point of view?
Identify KNO3 and KH2PO4 at home
Ellipses aligned on the same boundary point
Why am I able to open Wireshark in macOS X without root privileges?
Avoid page break between paragraphs
Square Root Distance from Integers
Cookies - Should the toggles be on?
Does Skippy chunky peanut butter contain trans fat?
Why zero tolerance on nudity in space?
Is there a lava-breathing lizard creature (that could be worshipped by a cult) in 5e?
Why did the villain in the first Men in Black movie care about Earth's Cockroaches?
How to use Mathematica to do a complex integrate with poles in real axis?
What is the difference between rolling more dice versus fewer dice?
Is using an 'empty' metaphor considered bad style?
How to not let the Identify spell spoil everything?
Why avoid shared user accounts?
Constexpr if with a non-bool condition
Delete specific folders at UNC location
Batch script to delete specific foldersWindows CMD command to run a command inside every subdirectory?Why has the Redirected Folders UNC path changed?Fast NT batch script for determining path lengths in a folderDelete folders in subfoldersAccessing UNC Share with different Login CredentialsBatch script to delete specific foldersWant to handle the error while deleting some files and foldersbatch file to delete foldersDisplay all Hidden UNC folders in DomainDelete folders older than x days with wildcard in foldername
I'm trying to create a batch script to delete all folders having "Exception_" in it's name from the current folder in a remote desktop. I used this answer to a previous question to come up with the below script.
@echo off
setlocal enabledelayedexpansion
rem find directories called Exception_
for /f "usebackq tokens=*" %%i in (`dir /b /s /a:d Exception_`) do (
rem delete the directories and any files or subdirectories
rd /s /q "%%i"
)
endlocal
However, the command prompt is showing that UNC paths are not supported. Any way to make this work ?
batch script unc
New contributor
Newbie is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
I'm trying to create a batch script to delete all folders having "Exception_" in it's name from the current folder in a remote desktop. I used this answer to a previous question to come up with the below script.
@echo off
setlocal enabledelayedexpansion
rem find directories called Exception_
for /f "usebackq tokens=*" %%i in (`dir /b /s /a:d Exception_`) do (
rem delete the directories and any files or subdirectories
rd /s /q "%%i"
)
endlocal
However, the command prompt is showing that UNC paths are not supported. Any way to make this work ?
batch script unc
New contributor
Newbie is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
I'm trying to create a batch script to delete all folders having "Exception_" in it's name from the current folder in a remote desktop. I used this answer to a previous question to come up with the below script.
@echo off
setlocal enabledelayedexpansion
rem find directories called Exception_
for /f "usebackq tokens=*" %%i in (`dir /b /s /a:d Exception_`) do (
rem delete the directories and any files or subdirectories
rd /s /q "%%i"
)
endlocal
However, the command prompt is showing that UNC paths are not supported. Any way to make this work ?
batch script unc
New contributor
Newbie is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I'm trying to create a batch script to delete all folders having "Exception_" in it's name from the current folder in a remote desktop. I used this answer to a previous question to come up with the below script.
@echo off
setlocal enabledelayedexpansion
rem find directories called Exception_
for /f "usebackq tokens=*" %%i in (`dir /b /s /a:d Exception_`) do (
rem delete the directories and any files or subdirectories
rd /s /q "%%i"
)
endlocal
However, the command prompt is showing that UNC paths are not supported. Any way to make this work ?
batch script unc
batch script unc
New contributor
Newbie is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Newbie is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Newbie is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 26 mins ago
NewbieNewbie
12
12
New contributor
Newbie is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Newbie is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Newbie is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Newbie is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1409898%2fdelete-specific-folders-at-unc-location%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Newbie is a new contributor. Be nice, and check out our Code of Conduct.
Newbie is a new contributor. Be nice, and check out our Code of Conduct.
Newbie is a new contributor. Be nice, and check out our Code of Conduct.
Newbie is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1409898%2fdelete-specific-folders-at-unc-location%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown