this post was submitted on 07 Dec 2023
1135 points (98.4% liked)

memes

10398 readers
2673 users here now

Community rules

1. Be civilNo trolling, bigotry or other insulting / annoying behaviour

2. No politicsThis is non-politics community. For political memes please go to [email protected]

3. No recent repostsCheck for reposts when posting a meme, you can only repost after 1 month

4. No botsNo bots without the express approval of the mods or the admins

5. No Spam/AdsNo advertisements or spam. This is an instance rule and the only way to live.

Sister communities

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 18 points 11 months ago (2 children)

Windows gives a permission error if you try to delete or edit a file that's being executed. It has no complaints about moving it though.

[–] [email protected] 13 points 11 months ago

This. Sometimes it just doesn't tell you that shit is still running in the background

[–] [email protected] 4 points 11 months ago* (last edited 11 months ago) (1 children)

That'd be fine, though? Not an OS expert but if you move it, the computer knows where it goes any can pause and read/writes and utilize RAM for it's in-use version. But if it tries the same thing when you deleted it, it's going to have nowhere to put the results of whatever it's doing. Also if the computer is just reading a file, it may assume you might not want to delete it.

[–] [email protected] 2 points 11 months ago

Not an OS expert but if you move it, the computer knows where it goes any can pause and read/writes and utilize RAM for it’s in-use version.

It's more like it doesn't actually go anywhere on-disk; only the tag in the filesystem pointing to it changes. I'm pretty sure once the program has an open file handle, it doesn't care about the path anymore anyway.