![]() |
A thinking experiment, How can you tell - Printable Version +- QB64 Phoenix Edition (https://qb64phoenix.com/forum) +-- Forum: Chatting and Socializing (https://qb64phoenix.com/forum/forumdisplay.php?fid=11) +--- Forum: General Discussion (https://qb64phoenix.com/forum/forumdisplay.php?fid=2) +--- Thread: A thinking experiment, How can you tell (/showthread.php?tid=3567) |
A thinking experiment, How can you tell - doppler - 03-30-2025 Back in the early days ram was expensive, storage space much more so and CPU power the race was on. Nowadays ungodly amount of ram is cheap, couple of buck per terabyte storage space and CPU's are now limited by Moore's law, must expand width wise (cores). Why the history lesson ? Operating systems are still written not caring about any of that stuff. It's give me more, more, more. Today I can identify how much ram is available, how much storage space there is and all kinds of info about the CPU. So what is there to think about ??? So how can you tell what the storage medium is ? Is it networked, HDD, SSD, Ramdrive and dare I say cough, cough Floppy ? I have all kinds of programs written to create scripts running in dos CMD terminals. Performance wise I go nuts with multiple task terminals when I know it's executing inside a Ramdrive. Because I know it will be limited by the CPU quality performance and a small factor ram speed. If I can tell the media type, I won't go nuts on something other than a Ramdrive. Just thinking about 12 terminals executing on a floppy, give me shivers. Your thoughts or solution ? RE: A thinking experiment, How can you tell - Pete - 03-30-2025 Maybe shelling this out using Powershell and then parsing the results? https://stackoverflow.com/questions/67182306/identify-external-and-internal-hard-drive-in-powershell Search "MediaType" in that post. Pete RE: A thinking experiment, How can you tell - doppler - 03-31-2025 (03-30-2025, 01:39 PM)Pete Wrote: Maybe shelling this out using Powershell and then parsing the results? That could work. At least now I won't make the mistake of flooding a bad media type with lot's of parallel scripts. I expected the answer would be some kind of shell event. I will experiment with it. Hopefully a Ramdrive won't be ID'ed as a HDD. RE: A thinking experiment, How can you tell - mdijkens - 03-31-2025 Maybe this helps? DriveType is one of the fields (There might be unrelevant pieces in here; cut out from larger program) Code: (Select All)
RE: A thinking experiment, How can you tell - Pete - 03-31-2025 +1 for an API solution. I haven't messed with those for a year or two. Pete RE: A thinking experiment, How can you tell - doppler - 03-31-2025 I would have thought Squiggy would post an API and be first one. What a let down, squiggy must be on vacation. What I thought would happen, my Ramdrive is listed as local drive type 3. Even the external hdd is listed as local. RE: A thinking experiment, How can you tell - Pete - 03-31-2025 Or maybe it's because you refer to Spriggsy as "squiggy" who I think played aside of Lenny in an old TV sitcom called Laverne and Shirley, although I don't think he'd reply if referred to as The Fonz or The Big Ragu, either. He does have some pretty great routines though. I love his recycle bin API. Pete |