How can I optimize my files deletion under windows? [closed] - windows

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 8 years ago.
Improve this question
What is happening behind the scenes when I delete several files on Windows?
Assuming that my code deletes several files in a loop, I guess there should be some kind of optimization to access the MFT. How exacly does this works?
What are the best practices for optimal file deletion?

Deleting massive numbers of files is an infrequent operation on Windows, so it appears there is no support for optimizing this use case. The best you can do is delete all the files individually.

If all the files are in a single directory, you may try Directory.Delete
Otherwise, you may also try IFileOperations.

Related

What is the best way to compare two directories in Windows 10? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed last year.
Improve this question
I have two similar directories with slightly different file contents. Is there a good way on Windows to compare the contents of two directories like the Linux diff command?
You can use BeyondCompare the diff tool to compare the contents of different directories, but you need to install it first.

Do any computer languages not use a stack? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Do any computer languages not use a stack data structure to keep track of execution progress?
Or is the use of this data structure an emergent requirement stemming from something inherent to most computer languages or turing machines?
With a traditional "C-style" stack, certain language features are difficult or impossible to implement. For example, closures can't easily be implemented with a traditional stack because closures require a pointer to an old activation record to work correctly and that memory is automatically reclaimed in a C-style stack. As another example, generators and coroutines need their own memory to store local variables and relative offset information and therefore can't easily be implemented if you use a standard stack implementation.
Hope this helps!

What happens to files that are mmv-ed by 2 different scripts run at the same time? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
let's say I have 2 different scripts that do a mmv on files from the same directory but to different target directories.
They are run at the same time (cron).
What happens to the files that match mmv's pattern ? Are they scattered in both target directories ?
This is a timing question. Who moves them first is the winner.
It makes a difference here if you move them to a directory within the same file system where just the entries are moved or across file systems, where the file is copied and then removed.
Unpredictable result:
The first (there is always a first) would success,
The laters would fail -> generate some error report.

How to check what process is writing to hard drive in shell [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
Currently the free space of my hard disk is shrinking for unknown reason. The free space keeps reducing until no space lefts. I don't know what's the cause, so I want to inspect to see what process is the culprit and terminate it.
Command like find / -size +5M will help you find files bigger than particular size (5M in the example). Probably these would be log files, so you might want to set up logrotate properly. Other possibility is core files, which means some autostarted program is screwed. Also have a look at lsof.

Wizard pattern and other GUI patterns for infrequent, complicated task [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 9 years ago.
Improve this question
We are thinking of using a Wizard pattern to help a user complete a task.
The Wizard pattern seems to solve our problem. We are also interested in what human factors research might have to say about the basic problem of a non-expert user needing to accomplish an infrequent and complicated task-–-are there other, possibly better paradigms for doing this than a wizard?
You posted this question over two years ago and no one has offered a better interaction design pattern than the wizard.
That looks like an answer to me.

Resources