I need to run a script.cmd to delete all files with the following extensions: .txt
and .mp4
if they exist. These files are located in the following C:\comando\batch\diretorio\teste
folder and script.cmd is located at C:\comando\batch
.
How can I do this, knowing that after these commands, others will be executed, but not to the test folder, but rather to the batch folder.
That is, is it possible to do this without leaving the batch folder?
Commands must be compatible with Windows 2003 / XP.