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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

First some basics on Windows 7 Backup.  It has 2 components one is a file based backup which is stored in .zip files each zip is split at around 200 Megabytes and there is the Image Backup which is as the name implies a total image of the partition …
A quick guide on how to use Group Policy to create a custom power plan and set it active on Windows 7.
This Micro Tutorial will give you basic overview of the control panel section on Windows 7. It will depth in Network and Internet, Hardware and Sound, etc. This will be demonstrated using Windows 7 operating system.
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.

830 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