I don't know, but since no one else is answering, I'll speculate in the hopes it helps somehow.
copys of files being layered one over the other, so you can end up with
a mash up of anywhere from 1-4 images... Heres whats in use at the
So you're getting a mashup of images, rather than a single copy, which makes
me assume that one of a few things are happening:
1. Something is writing all of them out
2. There's a loop causing the copy to happen multiple times (and probably somehow copying into a file rather than a clean slate version, I guess)
3. It's running in parallel
So, with those in mind
echo > \sbbs\test
I don't know the syntax, here. What's echo sending, and to where? My first thought was that it could be echoing everything in the test directory, and
thus that'd explain why you're getting a mashup of images.
:post
goto loop
Not sure what's happening in the larger loop, but perhaps it's getting back here frequently? Or the "if exist \sbbs\test goto post" bit isn't skipping
the copy.
if errorlevel 1 set NUM=1
if errorlevel 2 set NUM=2
I remember elsewhere there being a discussion on batch files and "if
errorlevel 1" meaning "if errorlevel >= 1" (or <=1) rather than strictly
equal, so if this is somehow a parallel execution sort of thing, maybe
there's multiple threads doing unpredictable things because of it?
...admittedly, that last one is more than a bit of a stretch. I'm mostly just reaching in trying to figure out how you'd get a file with multiple different images if the copy action happened only once.
Oh, also, would there be any benefit to deleting the goodbye.ans immediately before copying one in? I suppose you'd likely run into a bug where it got deleted but not created, and that'd cause issues.
But it also occurs to me that maybe you really do have some parallel things going on, if there are multiple copies of this script running at any given time, as could happen with multiple nodes.
--- Mystic BBS v1.12 A43 2019/03/03 (Windows/64)
* Origin: Storm BBS (21:2/108)