self-delete line
Posted: 01 Jan 2011 21:14
I am trying to make a batch file that at the end will delete it's self. I have already tried once, using:
DEL %~dp0% [file name]
and deleted by desktop in the doings . I have a idea, but i wanted to check with someone else before I mess up again. My new idea is:
DEL %~dp0%%1 prompt $
Do you think this will work? If not, what should I do to fix it.
Thanks!
DEL %~dp0% [file name]
and deleted by desktop in the doings . I have a idea, but i wanted to check with someone else before I mess up again. My new idea is:
DEL %~dp0%%1 prompt $
Do you think this will work? If not, what should I do to fix it.
Thanks!