Month: September 2018

Call vs Start

http://stackoverflow.com/questions/13257571/call-command-vs-start-with-wait-option For exe files, I suppose the differences are nearly unimportant. But to start an exe you don’t even need CALL. When starting another batch it’s a big difference, as…

Best way in .NET to manage queue of tasks on a separate (single) thread

http://stackoverflow.com/questions/20056727/need-to-understand-the-usage-of-semaphoreslim http://stackoverflow.com/questions/20904328/c-sharp-async-tasks-in-a-queue-or-waiting-list http://stackoverflow.com/questions/25691679/best-way-in-net-to-manage-queue-of-tasks-on-a-separate-single-thread To create an asynchronous single degree of parallelism queue of work you can simply create a SemaphoreSlim, initialized to one, and then have the enqueing method await…

Delayed Expansion

http://stackoverflow.com/questions/14347038/dos-batch-why-are-my-set-commands-resulting-in-nothing-getting-stored You found the bbb (batch beginner bug), but not the variable is empty, it’s the expansion that doesn’t work as expected. Percent expansion is done when a line or…