how to delete the. bat file I am using

Asked

Viewed 33 times

1

I’m trying to play a little game with . bat, it works like this: I ask a question, if the player hits he continues the game, but if he misses deletes the game file. But I don’t know how to program very well.

I’ve seen some forums, but none of the ones I’ve seen have helped me

2 answers

0

You can delete files using the command

del nome_do_arquivo

0

Add the command below in its condition, delete the . bat itself being executed:

del %0

Be careful, save the content before, otherwise you will end up losing.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.