viewpoint-particle

Author Topic: there is the ability to background process in winbatch?  (Read 85 times)

davidp@ensuredr.com

  • Newbie
  • *
  • Posts: 12
there is the ability to background process in winbatch?
« on: November 21, 2019, 05:05:24 am »
something like threads?

td

  • Tech Support
  • *****
  • Posts: 3103
    • WinBatch
Re: there is the ability to background process in winbatch?
« Reply #1 on: November 21, 2019, 08:19:25 am »
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

  • Sr. Member
  • ****
  • Posts: 276
Re: there is the ability to background process in winbatch?
« Reply #2 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

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

  • Tech Support
  • *****
  • Posts: 3103
    • WinBatch
Re: there is the ability to background process in winbatch?
« Reply #3 on: November 22, 2019, 02:05:18 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