there is the ability to background process in winbatch?

Started by davidp@ensuredr.com, November 21, 2019, 05:05:24 AM

Previous topic - Next topic

td

WinBatch is not multithreaded and that is a good thing.  Generally, only people that don't understand the full implications of dealing with multithreading ask about it.  However, there are many ways to perform "background processing" with WinBatch.  The simplest is to use one or more (possibly detached) processes.

https://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WinBatch/Miscellaneous+Multi-Threaded~WinBatch~Scripts.txt
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade

snowsnowsnow

Checked that URL - seems to be pretty much just the same content as your response - which boils down to (are you ready for it?): NO

I found this interesting, though:

Article ID:   W17978
Filename:   Multi-Threaded WinBatch Scripts.txt
File Created: 2017:07:28:13:00:30
Last Updated: 2009:01:30:07:21:44

How can it have been updated before it was created?

td

Quote from: snowsnowsnow on November 22, 2019, 12:41:21 PM
Checked that URL - seems to be pretty much just the same content as your response - which boils down to (are you ready for it?): NO

That was the point - encourage looking before asking.

Quote

I found this interesting, though:

Article ID:   W17978
Filename:   Multi-Threaded WinBatch Scripts.txt
File Created: 2017:07:28:13:00:30
Last Updated: 2009:01:30:07:21:44

How can it have been updated before it was created?

The short answer:
That's how NTFS works.

The slightly longer answer:
When you copy a file from one NTFS volume to another NTFS volume you are creating the file on the "copied to" volume.  Therefore, the create date reflects the date that the file was created by the act of it being copied.  On the other hand,  the last modified date is part of the file metadata and by default, file metadata is copied with the file on NTFS volumes.
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade