Author Topic: how do we display os name  (Read 3019 times)

0 Members and 1 Guest are viewing this topic.

Offline badger

  • Forum Regular
  • Posts: 148
    • View Profile
how do we display os name
« on: October 08, 2020, 03:34:46 pm »
Hello

I had it a while ago and lost the information there is a command you use to get os type (windows) and weather it is 32 or 64 bit in your software

Badger

Thanks in advance the people here are good people


Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: how do we display os name
« Reply #1 on: October 08, 2020, 03:36:22 pm »
https://www.qb64.org/wiki/OS$#:~:text=The%20_OS%24%20function%20returns%20the%20operating%20system%20and,bit%20version%20used%20to%20compile%20a%20QB64%20program.

Code: QB64: [Select]

If you just look at the wiki, you’d see the answer to most of these questions.  ;)
« Last Edit: October 08, 2020, 03:37:34 pm by SMcNeill »
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Offline badger

  • Forum Regular
  • Posts: 148
    • View Profile
Re: how do we display os name
« Reply #2 on: October 08, 2020, 03:38:47 pm »
Hello

dhhh sorry i just could not think about what to search for

thanks very very much

Badger

Offline Richard Frost

  • Seasoned Forum Regular
  • Posts: 316
  • Needle nardle noo. - Peter Sellers
    • View Profile
Re: how do we display os name
« Reply #3 on: October 09, 2020, 12:40:50 am »
Reading the entire Wiki once, and then at least once a year, is a good
idea. There's also a Random button, thanks to which I found the hilarious
entry for LET.

Who done dat?  Pete?


It works better if you plug it in.

Offline Pete

  • Forum Resident
  • Posts: 2361
  • Cuz I sez so, varmint!
    • View Profile
Re: how do we display os name
« Reply #4 on: October 09, 2020, 07:33:43 am »
You need to use the QB64 wizard to obtain such results in your programs. Look it up in the wiki under, the Wonderful Wizard of Os.

Let Pete = Haha
Want to learn how to write code on cave walls? https://www.tapatalk.com/groups/qbasic/qbasic-f1/