Page 1 of 1 1
Topic Options
#34707 - 2003-01-02 04:23 PM Laptop vs PC
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2125
Loc: Tulsa, OK
Anyone have any ideas on how to tell a PC from a Laptop? Registry key or file existance maybe...Just an idea. Thanks.
Top
#34708 - 2003-01-02 04:50 PM Re: Laptop vs PC
Diane Offline
Fresh Scripter

Registered: 2002-12-31
Posts: 22
A laptop is usually smaller in size than a desktop, and has the monitor built in.

Please excuse my lame attempt at humour, i'm still celebrating the new year.
_________________________
---------------------------- Diane Confucious say: Woman who keep washing liquid on top shelf, jump for joy

Top
#34709 - 2003-01-02 04:52 PM Re: Laptop vs PC
Diane Offline
Fresh Scripter

Registered: 2002-12-31
Posts: 22
Seriously though I believe you should check for a reference to PCMCIA in the registry (you'll have to search for the key yourself as I don't own a laptop). If this key exists then its a laptop, if not its a desktop.
_________________________
---------------------------- Diane Confucious say: Woman who keep washing liquid on top shelf, jump for joy

Top
#34710 - 2003-01-02 05:02 PM Re: Laptop vs PC
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2125
Loc: Tulsa, OK
Thanks for the idea...Will see what I can find.

Happy New Years To You Too by the way...

Top
#34711 - 2003-01-02 05:06 PM Re: Laptop vs PC
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
Please search the KiXtart BBS for 'laptop PCMCIA' as this has already been discussed numerous times.
_________________________
There are two types of vessels, submarines and targets.

Top
#34712 - 2003-01-02 05:10 PM Re: Laptop vs PC
BrianTX Offline
Korg Regular

Registered: 2002-04-01
Posts: 895
Or look at this site:

http://www.swynk.com/friends/hobbs/queries.asp#Laptop%20query

Brian

Top
#34713 - 2003-01-02 06:04 PM Re: Laptop vs PC
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2125
Loc: Tulsa, OK
Maybe I wanted to discuss it again. If you don't want to be included then don't reply.

How does this look?

code:
 
$BATTERY = KeyExist("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Compbatt")
If $BATTERY
$laptop = "Yes"
Else
$laptop = "No"
Endif


Top
#34714 - 2003-01-02 06:07 PM Re: Laptop vs PC
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
that might be more trustable.
as I see it, PCMCIA can be in any pc.
_________________________
!

download KiXnet

Top
#34715 - 2003-01-02 06:41 PM Re: Laptop vs PC
Diane Offline
Fresh Scripter

Registered: 2002-12-31
Posts: 22
Looks good, and i'd like to know what desktop would have a PCMCIA in it
_________________________
---------------------------- Diane Confucious say: Woman who keep washing liquid on top shelf, jump for joy

Top
#34716 - 2003-01-02 06:44 PM Re: Laptop vs PC
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
We have several...
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#34717 - 2003-01-02 07:04 PM Re: Laptop vs PC
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
We have some, too. They are also not necessarily desktops, as they are more or less all-in-one computers/LCD screens with no keyboard/mouse attached eihter.
_________________________
There are two types of vessels, submarines and targets.

Top
#34718 - 2003-01-02 07:09 PM Re: Laptop vs PC
GRF Offline
Fresh Scripter

Registered: 2002-02-15
Posts: 45
Loc: Ohio
Try HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\CentralProcessor\0\ProcessorNameString. All the laptops I've checked have "Mobile CPU" in the Value Data.
_________________________
GF

Top
#34719 - 2003-01-02 07:18 PM Re: Laptop vs PC
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
That is because the CPU is most likely one designed for laptops. However, you can also buy laptops that contain a desktop CPU which doesn't necessarily has the advanced power-savings features.
_________________________
There are two types of vessels, submarines and targets.

Top
#34720 - 2003-01-02 07:41 PM Re: Laptop vs PC
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2125
Loc: Tulsa, OK
PCMCIA values may also be different in laptops that have the port but no card installed?
Top
#34721 - 2003-01-02 07:45 PM Re: Laptop vs PC
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2125
Loc: Tulsa, OK
Can also check the following key...

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ACPI

The Start value should be 0 for laptops and 4 for PCs...

Can anybody prove these wrong?

Top
#34722 - 2003-01-02 07:48 PM Re: Laptop vs PC
GRF Offline
Fresh Scripter

Registered: 2002-02-15
Posts: 45
Loc: Ohio
There was no ACPI key on my IBM Thinkpad w/ Win98.
_________________________
GF

Top
#34723 - 2003-01-02 07:54 PM Re: Laptop vs PC
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2125
Loc: Tulsa, OK
Figures...How about the CompBatt key?
Top
#34724 - 2003-01-02 08:19 PM Re: Laptop vs PC
Diane Offline
Fresh Scripter

Registered: 2002-12-31
Posts: 22
Side-topic,
Sealeapard
quote:
We have some, too. They are also not necessarily desktops, as they are more or less all-in-one computers/LCD screens with no keyboard/mouse attached eihter.
Those sound interested, what brand are they?
_________________________
---------------------------- Diane Confucious say: Woman who keep washing liquid on top shelf, jump for joy

Top
#34725 - 2003-01-02 08:31 PM Re: Laptop vs PC
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2125
Loc: Tulsa, OK
One more try...

Win9x...
HKEY_LOCAL_MACHINE\Enum\ACPI\*PNP0C0A

Win2k-xp...
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\ACPI\PNP0C0A

??

Top
#34726 - 2003-01-02 09:21 PM Re: Laptop vs PC
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
Diane: WE got those computers from Advantech at http://www.advantech.com

They are medical-grade computers with a 12'' LCD screen, 4 serial ports, 2 PCMCIA, 1 1/2-lenght PCI, 256MB RAM, 850MHz P-III, 40GB HD. However, they have a couple of different models.

We are using those as a client computer for a custom data acquisition system that sits on a laptop. The PanelPC collects the data and displays information to subjects while the laptop is used by an operator to control the experiment.

We even use some KiXtart scripts for remote administration of the PanelPCs as they won't have input devices connected to themselves.
_________________________
There are two types of vessels, submarines and targets.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 382 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.083 seconds in which 0.03 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org