Solved

need help with Batch file

Posted on 2011-03-10
3
256 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 500 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 500 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The following is a collection of cases for strange behaviour when using advanced techniques in DOS batch files. You should have some basic experience in batch "programming", as I'm assuming some knowledge and not further explain the basics. For some…
YESTERDAY YESTERDAY.BAT is inspired by a previous article I wrote entitled: TOMORROW.BAT (http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/MS_DOS/A_4196-Advanced-Batch-File-Programming-TOMORROW-BAT.html). The crux of this batch f…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

730 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