1.

Solve : Accept File Name To Delete From User in DOS?

Answer»

Hi Everybody,

I am basically trying to DELETE files by accepting user input ie. Name of the FILE to be deleted and then delete that file.

Can someone guide me as to how this MIGHT be accomplished IN DOS?

I am on WIN XP . and will write a bacth file to do this.

Regards,

Jhedstry this
set /p filename=Name of file to delete:
del %filename%

you may need to change to the relevant directory first
Graham



Discussion

No Comment Found