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
182 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

A quick guide on how to use Group Policy to create a custom power plan and set it active on Windows 7.
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.
This Micro Tutorial will give you a basic overview of Windows Live Photo Gallery and show you various editing filters and touches to photos you can apply. This will be demonstrated using Windows Live Photo Gallery on Windows 7 operating system.

617 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