1.

Solve : Hidden command windows - good or bad??

Answer» <html><body><p>I am writing (have finished, really) a little batch that I am quite pleased with. It is a multi-threaded or multipart downloader. You know the <a href="https://interviewquestions.tuteehub.com/tag/kind-25540" style="font-weight:bold;" target="_blank" title="Click to know more about KIND">KIND</a> of thing. There are plenty of GUI programs that do this - Net Transport, GetRight, WxDownload, etc. But I wanted a command line solution that you just feed with a url and away it goes.<br/><br/>What it does is to maximize the download rate of a file hosted on a web or ftp site by downloading multiple chunks simultaneously and assembling them when they are all complete. This can enable you to get a <a href="https://interviewquestions.tuteehub.com/tag/better-895998" style="font-weight:bold;" target="_blank" title="Click to know more about BETTER">BETTER</a> download speed from a slow server. I found that if I use e.g. wget to download an flv file from a certain TV network's server, it maxed at around 1-2 megabits/sec. If I download 16 threads at once, I can max out my 20 megabit/sec cable internet connection. 25 or 30 minutes become around 2 minutes.<br/><br/>Anyhow, it uses an open source command line downloader called Curl, which has the ability to download a specified segment of a file, for example if you were download a file which was 1 million bytes in size you could have one Curl downloading bytes from 0 - 499999 and another one downloading bytes 500000 to the end. Using the start command you can have 'em both running at once, and it's not too difficult to monitor when they have all finished. I have gone up to 32 simultaneous threads this way. There is no limit but I have found 8 or 16 gets me all the speed I can use.<br/><br/>The problem is that multiple command windows are a nuisance on the desktop and/or the taskbar. I have 2 different ways of creating the threads to run hidden. However I understand that some people consider hidden windows a bit sinister, and therefore I hesitate to share this on here. Because it would necessarily reveal how to do this.<br/><br/>What do people think?<br/><br/>The batch scheme uses Curl and the GNU port of the Unix cat utility, and I have 2 ways of launching hidden processes using free apps, but I shall not mention what they are unless I am assured by people I respect on here that it would be OK to do so. And if anyone is actually interested to see my batch script.<br/> Well, Most of the kind of people looking to hide command windows for sinister <a href="https://interviewquestions.tuteehub.com/tag/reasons-249297" style="font-weight:bold;" target="_blank" title="Click to know more about REASONS">REASONS</a> are the type who post "ya hi I need to hide the batch window that shows please send the codez k <a href="https://interviewquestions.tuteehub.com/tag/thx-2290102" style="font-weight:bold;" target="_blank" title="Click to know more about THX">THX</a>" and repost <a href="https://interviewquestions.tuteehub.com/tag/polls-1158341" style="font-weight:bold;" target="_blank" title="Click to know more about POLLS">POLLS</a> we've already had a million times, etc.<br/><br/>Also, It's one thing to provide a method of hiding command windows when one of those types requests it; it's quite another when it's part of another project.Yeah. If it actually serves a good purpose, I believe that it should be ok to use a hiding program.Hey salmon, can you provide me with a copy? It would be really useful. It doesn't have to be hidden, I don't mind.I abandoned the project when I found out about aria2 which does all that I wanted.<br/><br/><a href="http://aria2.sourceforge.net/">http://aria2.sourceforge.net/</a><br/><br/><br/><br/><br/></p></body></html>


Discussion

No Comment Found