VBS multiple looping .vbs on one PC

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



VBS multiple looping .vbs on one PC



Can VBS run two infinite loops?



I wrote an FTP downloader.



And I wrote a script that distributes the downloads to several folders.



Both are never-ending loops



Problems occur when I run them both: it seems only the .vbs started last, works error free.



When I start the distributor first, it fails later on when the ftp downloader is active and vice versa.



Could it be they "see" each others variables? I'm stuck and got no clue as to what is going on.



Could FileSystemObjects block each other? Claim folders or files so the other .vbs can't work with them?





Okay, voted down again. I can't post the scripts here as they are massive. Can VBS run two infinite loops?
– Geoff Vane
Aug 10 at 18:23





Why use a loop and not schedule task?
– Pankaj Jaju
Aug 10 at 18:54





what is the distributor and what is the downloader. They seem to be 2 different things
– Bela Tamas Jozsa
Aug 11 at 13:39





The downloader grabs files from the FTP and puts them in a buffer folder. Each file that seems okay, is then transferred to a ticket folder and deleted from the FTP. this is loop 1.
– Geoff Vane
Aug 12 at 18:15






The distributor looks into the ticket folder and distributes the content over 4 node folders for rendering. This is loop 2.
– Geoff Vane
Aug 12 at 18:17




1 Answer
1



I forgot ftp.exe leads its own life outside of my VBS. The download was initated by the VBS and then the VBS jumped into handling the files. This can go wrong if the download hasn't finished.






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

Creating a leaderboard in HTML/JS