A
A
Andrey2015-08-04 14:32:29
Automation
Andrey, 2015-08-04 14:32:29

What to write in a .bat file after which it would be deleted?

Help write .bat file. It is necessary to delete this .bat file after executing the commands in the .bat file.
How to do it?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexey Boldyrev, 2015-08-04
@mishanyayalta

del %~s0 /q

I
IceJOKER, 2015-08-04
@IceJOKER

if you wrote this same .bat file, then you should know how to write code that will delete this very bat file.
maybe a virus?

S
Sergey, 2015-08-05
@Yestestvenno

in the last line
del %0

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question