Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

need help with Batch file

Posted on 2011-03-10
3
Medium Priority
?
260 Views
Last Modified: 2012-05-11
Need to have the batch file run without prompting for a "YES" or "NO"

C:\>del  \\test01\test\test

\\test01\test\test\*, Are you sure (Y/N)? y

Thanks
0
Comment
Question by:Sean
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
enzogoy earned 2000 total points
ID: 35100301
Do you really need a batch file?  If not then you can run this command from the command prompt.  Work really well.

@DEL /S /Q /F "\\test\test\test\*.*"

The above command will delete all files in that test folder.  It won't pop up to ask you to confirm.
0
 
LVL 7

Assisted Solution

by:enzogoy
enzogoy earned 2000 total points
ID: 35100446
@echo off
del /Q /S /F "\\testing\testing\testing\*.*"
exit

save it as a batch file ... will do the job too.
0
 
LVL 1

Author Closing Comment

by:Sean
ID: 35185826
Thank you.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

TOMORROW TOMORROW.BAT is inspired by a question I get asked over and over again; that is, "How can I use batch file commands to obtain tomorrow's date?" The crux of this batch file revolves around the XCOPY command - a technique I discovered w…
Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question