• Octopus
    link
    fedilink
    19 months ago

    I made a Batch uninstaller (to one of my other bat scripts I think), and it could remove itself without any problem just with the command “del whateverthenamewas.bat”

    • @[email protected]
      link
      fedilink
      49 months ago

      Yeah, because the bat file isn’t actually running, it’s just a list of commands cmd should execute.

      • @[email protected]
        link
        fedilink
        39 months ago

        Yup, CMD acts as a parser / runtime and the process is bound to the CMD binary, the script file is being run by CMD which keeps a copy of it in its own working memory in RAM