IS THERE A WAY TO BYPASS DELETION PROMPT IN A BATCH SCRIPT?

Question by Mr. Help:
Is there a way to bypass deletion prompt in a Batch script?
For example if I want to clear the folder C:\Users\USER\Desktop\asd
I have to write in notepad Del C:\Users\USER\Desktop\asd and save as whatever.bat, then run
But then it prompts me for a confirmation. Is there a way to bypass prompting?
——————————————
Answer by Huge S
del /q will probably give you what you need.
you can do a “del /?” at a command prompt to see all of the available options.
——————————————
Know better? Leave your own answer in the comments!









about 2 years ago
You could try the Win32::OLE module
about 2 years ago
It would have to be a highly sophisticated PERL script to read a .doc file directly. The text shown in a Word window is only a small fraction of what’s actually in the file, before, intermingled with and after the actual words.
There may be ways in PERL to use Dynamic Data Exchange (DDE) to have Word give you the words from the file.