• Octopus
    link
    fedilink
    arrow-up
    1
    ·
    1 year 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”

    • tslnox@reddthat.com
      link
      fedilink
      arrow-up
      4
      ·
      1 year ago

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

      • Natanael@slrpnk.net
        link
        fedilink
        arrow-up
        3
        ·
        1 year 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