this post was submitted on 12 Oct 2023
1229 points (94.5% liked)

linuxmemes

20761 readers
2435 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] Octopus1348@thelemmy.club 1 points 11 months ago (1 children)

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 4 points 11 months ago (1 children)

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

[–] Natanael@slrpnk.net 3 points 11 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