• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 262
  • Last Modified:

need help with Batch file

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
Sean
Asked:
Sean
  • 2
2 Solutions
 
enzogoyCommented:
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
 
enzogoyCommented:
@echo off
del /Q /S /F "\\testing\testing\testing\*.*"
exit

save it as a batch file ... will do the job too.
0
 
SeanAuthor Commented:
Thank you.
0

Featured Post

Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now