Linked Questions

Popular Questions

PDF file not getting deleted in windows batch

Asked by At

I am very new to writing windows batch programmes.

I am trying to delete a pdf file in my batch programme. However the file is not getting deleted. I don't know what is wrong with this code. It works well when i try to delete a .txt file. I don't know how to trap the error also. It will be really helpful if you can guide me or redirect me to an appropriate forum.

This is the code I use:

echo Y | del \\file_path\filename.pdf

Related Questions