Solved

When running a batch file from a script "like Kaseya" how do I add a "Y" to continue.

Posted on 2014-11-23
2
180 Views
Last Modified: 2014-11-25
forfiles /p e:\ /s /d -14 /c "cmd /c del @path"

When running a batch file from a script "like Kaseya" how do I add a "Y" to continue.

e:\CacheSy (Full)\*, Are you sure (Y/N)? Y
e:\CacheSy(Full)\*, Are you sure (Y/N)? Y

here is my batch.

forfiles /p e:\ /s /d -14 /c "cmd /c del @path"
0
Comment
Question by:PAP0028
[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 Comments
 
LVL 24

Accepted Solution

by:
VB ITS earned 500 total points
ID: 40460927
Add the /q switch at the end of the "del @path" command as this is the Quiet Mode switch, i.e. no prompts. Your command should then look like this:
forfiles /p e:\ /s /d -14 /c "cmd /c del @path /q"
0
 

Author Closing Comment

by:PAP0028
ID: 40465085
Thanks BIG help....
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

You may have a outside contractor who comes in once a week or seasonal to do some work in your office but you only want to give him access to the programs and files he needs and keep privet all other documents and programs, can you do this on a loca…
When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
This Micro Tutorial will teach you how to change your appearance and customize your Windows 7 interface to your unique preference. This will be demonstrated using Windows 7 operating system.
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.

752 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