SC new could overwrite existing files and folders

Features wanted...
Post Reply
tiago
Posts: 589
Joined: 14 Feb 2011 21:41

SC new could overwrite existing files and folders

Post by tiago »

I stumbled upon this situation and saw there's plenty of options for writefile() which in case I considered to fix the problem but got not success on certain conditions. So is it possible to new() simply overwrite any previously created files or folder instead of popping a warning telling that the operation is not valid (yes, it's not the real wording) or appending suffixes as it currently does? I'm asking for a flag, not a full exchange of current behavior.
Power-hungry user!!!

admin
Site Admin
Posts: 66366
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: SC new could overwrite existing files and folders

Post by admin »

You mean to overwrite an existing file with a zero byte file?
And to completely empty an existing folder?

tiago
Posts: 589
Joined: 14 Feb 2011 21:41

Re: SC new could overwrite existing files and folders

Post by tiago »

Yep.
Bells and whistles, warnings and alarms on, I see no reason why not being able to start a whole structure of files that way. Invoking system's deletion mechanism may suffice to allow user to stop an eventual accident. Anyway, the people who'll use this OPTIONAL feature of sc new() will know what happens when they unleash the beast.
Power-hungry user!!!

admin
Site Admin
Posts: 66366
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: SC new could overwrite existing files and folders

Post by admin »

tiago wrote:Yep.
Bells and whistles, warnings and alarms on, I see no reason why not being able to start a whole structure of files that way. Invoking system's deletion mechanism may suffice to allow user to stop an eventual accident. Anyway, the people who'll use this OPTIONAL feature of sc new() will know what happens when they unleash the beast.
Technically this would be easy with files. But with folders it would be a lot of work for me. That's just FYI -- I don't have time for neither now.

Post Reply