Go Premium for a chance to win a PS4. Enter to Win

x
?
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
Medium Priority
?
186 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 2000 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
This Micro Tutorial will teach you how to the overview of Microsoft Security Essentials. This is a free anti-virus software that guards your PC against viruses, spyware, worms, and other malicious software. This will be demonstrated using Windows…
This Micro Tutorial will go in depth within Systems and Security in Windows 7 and will go into detail regarding Action Center, Windows Firewall, System, etc. This will be demonstrated using Windows 7 operating system.
Suggested Courses

879 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