Re: Getting the system profile

2003-07-11 Thread miscdas
Yates, Glen writes: 

>msinfo32.exe /report output.txt
>
>Then it will create a text file 'output.txt' with the system 
info in it that
>you can then parse for the info you need. The only drawback 
is it takes a
>little while to run. You may be able to narrow it down to 
just the category
>you need, though.
>
>-Glen 

How would one narrow it down?
like this: 

on mouseUp
launch "C:\Program Files\Common Files\Microsoft Shared\MSInfo\MSInfo32.exe 
/report C:\Temp\cdrom.txt /categories +componentsMultimediaCDROM"
end mouseUp 

It only takes a couple of seconds, rather than the many seconds required to 
get the complete sysinfo. 

Now read and parse the file cdrom.txt that was placed in C:\Temp directory.
(The file still contains some uneeded general system info, but the CD-ROM 
info is there.) 

miscdas 


-Glen
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


Re: Getting the system profile

2003-07-11 Thread Scott Rossi
Recently, "Yates, Glen"  wrote:

> Oh, and as far as operating systems, if it ends in X that is a good sign :-)
> 
> Irix, AIX, OSX, Linux
> 
> Although, somehow Solaris doesn't quite fit in.

Solarix ?

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-
E: [EMAIL PROTECTED]
W: http://www.tactilemedia.com

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


RE: Getting the system profile

2003-07-11 Thread Yates, Glen
> >msinfo32.exe /report output.txt
> >
> >Then it will create a text file 'output.txt' with the system 
> info in it that
> >you can then parse for the info you need. The only drawback 
> is it takes a
> >little while to run. You may be able to narrow it down to 
> just the category
> >you need, though.
> >
> >-Glen
> 
> How would one narrow it down?

run

msinfo32.exe /?

and explore the options, I've not actually done it myself.

Oh, and as far as operating systems, if it ends in X that is a good sign :-)

Irix, AIX, OSX, Linux

Although, somehow Solaris doesn't quite fit in.

-Glen
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


RE: Getting the system profile

2003-07-11 Thread Shari
msinfo32.exe /report output.txt

Then it will create a text file 'output.txt' with the system info in it that
you can then parse for the info you need. The only drawback is it takes a
little while to run. You may be able to narrow it down to just the category
you need, though.
-Glen
How would one narrow it down?

I can parse thru the text file for the info I want, but how would one 
narrow it down, so that only relevant data would go into the text 
file in the first place?

--
--Shareware Games for the Mac--
http://www.gypsyware.com
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


RE: Getting the system profile

2003-07-11 Thread Yates, Glen
> > sorry 
> > 
> > C:\Program Files\Common Files\Microsoft Shared>msinfo32
> > 'msinfo32' is not recognized as an internal or external command,
> > operable program or batch file. 
> > 
> > can't be retrieved from a vanilla mswin2000
> 
> Totally not surprising that you don't find msinfo32.exe on 
> Win2000; I think 

Actually, totally not surprising, since the path is incorrect!

> winmsd.exe is still used. If you carefully read what I 
> posted, "BTW, WIN XP 
> pro uses msinfo32.exe in place of winmsd.exe"... No mention 
> of Win2000, is 
> there? 
> 
> Find it here in Win XP pro
> C:\Program Files\Common Files\Microsoft Shared\MSInfo\msinfo32.exe 

Yes, that is the path on Windows2000 as well, and if you use the construct:

msinfo32.exe /report output.txt

Then it will create a text file 'output.txt' with the system info in it that
you can then parse for the info you need. The only drawback is it takes a
little while to run. You may be able to narrow it down to just the category
you need, though.

-Glen
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


RE: Getting the system profile

2003-07-11 Thread MisterX
Dear Shari,

I gave you a win version script that can make it work noprob...

As far as I see it

- MCI is not for all windoz (I couldn't get it running on a W2K TS
  which had it installed.)
  - I tried all day!!! Frag that idea - it's NOT intuitive at all 
and it's a lot of reading compared to a shell.
- WSH may not be installed on all pcs - could be tried though...
- Sysinternals must be programmed with VC++
- Externals: well apparently don't work either
This leaves shell()
- Shells work for all WinOS' and are invisible to the user, have all
the info you want.

I can't give you much more... You can pick up both the drive letter,
disk name and serial number. It's also easy to script. Nonetheless,
I must maintain that these schemes are dangerous for your reputation
if they break down, and as you see, they take time to implement and 
for what added benefit?

cheers
Xavier


> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Shari
> Sent: Friday, 11 July, 2003 15:38
> To: [EMAIL PROTECTED]
> Subject: Re: Getting the system profile
> 
> 
> >Klaus,
> >The externals may not be reliable on win XP pro. When I queried for 
> >the CD-ROM, it returned ONLY E. But I have CD-ROM drives in both E: 
> >and F:, correctly found by System Information.
> >Also, use this link to the externals
> >http://www.xworlds.com/metacard/external.htm
> >miscdas
> 
> Yes, my tests are on XP.  Don't know if it is Pro or not.  I miss 
> using Rinaldi's externals!  If it weren't for Windows, I'd have 
> solutions.
> 
> Shari C
> -- 
> --Shareware Games for the Mac--
> http://www.gypsyware.com
> ___
> metacard mailing list
> [EMAIL PROTECTED]
> http://lists.runrev.com/mailman/listinfo/metacard
> 
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


Re: Getting the system profile

2003-07-11 Thread Shari
Klaus,
The externals may not be reliable on win XP pro. When I queried for 
the CD-ROM, it returned ONLY E. But I have CD-ROM drives in both E: 
and F:, correctly found by System Information.
Also, use this link to the externals
http://www.xworlds.com/metacard/external.htm
miscdas
Yes, my tests are on XP.  Don't know if it is Pro or not.  I miss 
using Rinaldi's externals!  If it weren't for Windows, I'd have 
solutions.

Shari C
--
--Shareware Games for the Mac--
http://www.gypsyware.com
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


Re: Getting the system profile

2003-07-11 Thread Klaus Major
Hi miscdas,

Klaus Major writes:
[snip]
http://www.xworlds.com/metacard/welcome.htm Click on "Externals 
Collection" There you can dl the old x-collection of Tuviah, where 
the win version will "CD ROMs - get a list of currently available CD 
ROM drives" and more, of course :-) Hope that helps. Regards Klaus 
Major
[EMAIL PROTECTED]
www.major-k.de
===
Klaus,
The externals may not be reliable on win XP pro.
Oh, sorry, didn't know that :-(

When I queried for the CD-ROM, it returned ONLY E.
But I have CD-ROM drives in both E: and F:, correctly found by System 
Information.

Also, use this link to the externals
http://www.xworlds.com/metacard/external.htm
miscdas
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard
Regards

Klaus Major
[EMAIL PROTECTED]
www.major-k.de
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


Re: Getting the system profile

2003-07-11 Thread miscdas
Klaus Major writes:
[snip] 

http://www.xworlds.com/metacard/welcome.htm 

Click on "Externals Collection" 

There you can dl the old x-collection of Tuviah, where the win version 
will 

"CD ROMs - get a list of currently available CD ROM drives" and more, of 
course :-) 

Hope that helps. 

Regards 

Klaus Major
[EMAIL PROTECTED]
www.major-k.de
===
Klaus, 

The externals may not be reliable on win XP pro. When I queried for the 
CD-ROM, it returned ONLY E. But I have CD-ROM drives in both E: and F:, 
correctly found by System Information. 

Also, use this link to the externals 

http://www.xworlds.com/metacard/external.htm 

miscdas 

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


Re: Getting the system profile

2003-07-11 Thread xbury . cs

Richard,

It wont spit any dialog if you use the command line shell()...

Tested and approved!
Xavier

On 11/07/2003 01:48:21 metacard-admin wrote:
>MisterX wrote:
>
>>> Also, if no CD is loaded, it spits up an error dialog, another no no.
>>
>> I dont know where you saw this... I wonder, was it the net movie with
>> Sandra Bullock? ;))
>
>No, XP.
>
>If you check for the existence of a file on a removable media drive with no
>media loaded, XP throws up a dialog warning you that the drive is not ready.

Visit us at http://www.clearstream.com
  
IMPORTANT MESSAGE

Internet communications are not secure and therefore Clearstream International does not accept legal responsibility for the contents of this message.

The information contained in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Any views expressed in this e-mail are those of the individual sender, except where the sender specifically states them to be the views of Clearstream International or of any of its affiliates or subsidiaries.

END OF DISCLAIMER


Re: Getting the system profile

2003-07-11 Thread xbury . cs

Totally surprising that I DID find it on Win2000 and furnished the path isn't it?

My test was based on the shell returning the info which it didn't but now I know 
you could use mci instead...

Total cheers
Xavier

On 11/07/2003 09:49:18 metacard-admin wrote:
>MisterX writes:
>[snip]
>>
>>
>> sorry
>>
>> C:\Program Files\Common Files\Microsoft Shared>msinfo32
>> 'msinfo32' is not recognized as an internal or external command,
>> operable program or batch file.
>>
>> can't be retrieved from a vanilla mswin2000
>
>Totally not surprising that you don't find msinfo32.exe on Win2000; I think
>winmsd.exe is still used. If you carefully read what I posted, "BTW, WIN XP
>pro uses msinfo32.exe in place of winmsd.exe"... No mention of Win2000, is
>there?
>
>Find it here in Win XP pro
>C:\Program Files\Common Files\Microsoft Shared\MSInfo\msinfo32.exe
>
>> but im interested if you find it...
>> it's also an msc so maybe with vbs...
>>
>> but why go that far?
>
>Maybe because the output includes some of the info Shari requested? Here is
>a slice of it:
>
>Drive          E:
>Description    CD-ROM Drive
>Media Loaded   no
>Name           CD-ROM Drive/G6D
>Status         OK
>
>Drive          F:
>Description    CD-ROM Drive
>Media Loaded   no
>Name           YAMAHA CRW3200E
>Status         OK
>
>Notice it reports on BOTH of my CD-ROM drives, whether there is media
>loaded, the status of the drive, etc., all things that Shari can use.
>>
>>> -Original Message-
>>> From: [EMAIL PROTECTED]
>>> [mailto:[EMAIL PROTECTED] Behalf Of [EMAIL PROTECTED]
>>> Sent: Thursday, 10 July, 2003 23:01
>>> To: [EMAIL PROTECTED]
>>> Subject: Re: Getting the system profile
>>>
>>>
>>> [EMAIL PROTECTED] writes:
>>>
>>> > Shari writes:
>>> > [snip]
>>> >>
>>> >>> As a workaround in the meantime, have you considered walking
>>> through the
>>> >>> drive list looking for a specific file?  That would at least let you
>>> >>> know
>>> >>> whether a specific CD is mounted.
>>> >>>
>>> >>> --
>>> >>>  Richard Gaskin
>>> >>
>>> >> Tried it. But XP kills it.
>>> >>
>>> >> Instead of just passing it over if there is not, it spits up an error
>>> >> window.  Bad.
>>> >>
>>> >> Shari C
>>> >>
>>> > ==
>>> > You need to navigate deeper into the folders in the system Information.
>>> > CD-ROM drive info, including: drive letter, if media is loaded, status,
>>> > etc.,is here
>>> >
>>> > System Information\Components\Multimedia\CD-ROM
>>> >
>>> > miscdas
>>> >
>>> ===
>>> BTW, WIN XP pro uses msinfo32.exe in place of winmsd.exe
>>>
>>> miscdas
>>>
>>> ___
>>> metacard mailing list
>>> [EMAIL PROTECTED]
>>> http://lists.runrev.com/mailman/listinfo/metacard
>>>
>>
>> ___
>> metacard mailing list
>> [EMAIL PROTECTED]
>> http://lists.runrev.com/mailman/listinfo/metacard
>
>___
>metacard mailing list
>[EMAIL PROTECTED]
>http://lists.runrev.com/mailman/listinfo/metacard

Visit us at http://www.clearstream.com
  
IMPORTANT MESSAGE

Internet communications are not secure and therefore Clearstream International does not accept legal responsibility for the contents of this message.

The information contained in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Any views expressed in this e-mail are those of the individual sender, except where the sender specifically states them to be the views of Clearstream International or of any of its affiliates or subsidiaries.

END OF DISCLAIMER


Re: Getting the system profile

2003-07-11 Thread miscdas
MisterX writes:
[snip]
 

sorry 

C:\Program Files\Common Files\Microsoft Shared>msinfo32
'msinfo32' is not recognized as an internal or external command,
operable program or batch file. 

can't be retrieved from a vanilla mswin2000
Totally not surprising that you don't find msinfo32.exe on Win2000; I think 
winmsd.exe is still used. If you carefully read what I posted, "BTW, WIN XP 
pro uses msinfo32.exe in place of winmsd.exe"... No mention of Win2000, is 
there? 

Find it here in Win XP pro
C:\Program Files\Common Files\Microsoft Shared\MSInfo\msinfo32.exe 

but im interested if you find it...
it's also an msc so maybe with vbs... 

but why go that far?
Maybe because the output includes some of the info Shari requested? Here is 
a slice of it: 

Drive  E:
DescriptionCD-ROM Drive
Media Loaded   no
Name   CD-ROM Drive/G6D
Status OK 

Drive  F:
DescriptionCD-ROM Drive
Media Loaded   no
Name   YAMAHA CRW3200E
Status OK 

Notice it reports on BOTH of my CD-ROM drives, whether there is media 
loaded, the status of the drive, etc., all things that Shari can use.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of [EMAIL PROTECTED]
Sent: Thursday, 10 July, 2003 23:01
To: [EMAIL PROTECTED]
Subject: Re: Getting the system profile 

[EMAIL PROTECTED] writes: 

> Shari writes:
> [snip]
>>
>>> As a workaround in the meantime, have you considered walking
through the
>>> drive list looking for a specific file?  That would at least let you
>>> know
>>> whether a specific CD is mounted.
>>>
>>> --
>>>  Richard Gaskin
>>
>> Tried it. But XP kills it.
>>
>> Instead of just passing it over if there is not, it spits up an error
>> window.  Bad.
>>
>> Shari C
>>
> ==
> You need to navigate deeper into the folders in the system Information.
> CD-ROM drive info, including: drive letter, if media is loaded, status,
> etc.,is here
>
> System Information\Components\Multimedia\CD-ROM
>
> miscdas
>
===
BTW, WIN XP pro uses msinfo32.exe in place of winmsd.exe 

miscdas 

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard 

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


Re: Getting the system profile

2003-07-10 Thread xbury . cs

www.sysinternals.com is one place to find many "monitoring" command line tools.

The next best place is the NT resource kits (or win98).
To find those as well as mcisendstring commands, microsoft is the best place...
Google is the easiest way to find them there - forget the MS search crap.

Then google, fileflash.com, shellcity.net, etc...One of my colleagues' favorites
is http://sources.redhat.com/cygwin/download.html
cigwin which gives you Unix shell commands on windows. 

Then you can also install perl, php or others to run further possibilities...

Happy search

cheers
Xavier

On 11/07/2003 00:16:36 metacard-admin wrote:
>Recently, "MisterX"  wrote:
>
>> try www.sysinternals.com
>
>I tried this and got an error page "File or Page Not Found".
>
>Do you have any other resources for shell variables MC can access?
>
>Regards,
>
>Scott Rossi
>Creative Director
>Tactile Media, Multimedia & Design
>-
>E: [EMAIL PROTECTED]
>W: http://www.tactilemedia.com
>
>___
>metacard mailing list
>[EMAIL PROTECTED]
>http://lists.runrev.com/mailman/listinfo/metacard

Visit us at http://www.clearstream.com
  
IMPORTANT MESSAGE

Internet communications are not secure and therefore Clearstream International does not accept legal responsibility for the contents of this message.

The information contained in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Any views expressed in this e-mail are those of the individual sender, except where the sender specifically states them to be the views of Clearstream International or of any of its affiliates or subsidiaries.

END OF DISCLAIMER


RE: Getting the system profile

2003-07-10 Thread MisterX


sorry

C:\Program Files\Common Files\Microsoft Shared>msinfo32
'msinfo32' is not recognized as an internal or external command,
operable program or batch file.

can't be retrieved from a vanilla mswin2000
but im interested if you find it...
it's also an msc so maybe with vbs...

but why go that far?

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of [EMAIL PROTECTED]
> Sent: Thursday, 10 July, 2003 23:01
> To: [EMAIL PROTECTED]
> Subject: Re: Getting the system profile
>
>
> [EMAIL PROTECTED] writes:
>
> > Shari writes:
> > [snip]
> >>
> >>> As a workaround in the meantime, have you considered walking
> through the
> >>> drive list looking for a specific file?  That would at least let you
> >>> know
> >>> whether a specific CD is mounted.
> >>>
> >>> --
> >>>  Richard Gaskin
> >>
> >> Tried it. But XP kills it.
> >>
> >> Instead of just passing it over if there is not, it spits up an error
> >> window.  Bad.
> >>
> >> Shari C
> >>
> > ==
> > You need to navigate deeper into the folders in the system Information.
> > CD-ROM drive info, including: drive letter, if media is loaded, status,
> > etc.,is here
> >
> > System Information\Components\Multimedia\CD-ROM
> >
> > miscdas
> >
> ===
> BTW, WIN XP pro uses msinfo32.exe in place of winmsd.exe
>
> miscdas
>
> ___
> metacard mailing list
> [EMAIL PROTECTED]
> http://lists.runrev.com/mailman/listinfo/metacard
>

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


RE: Getting the system profile

2003-07-10 Thread Shari
Shari, dear reticents... ;)

...long long wonderful reply...
Best of lucks porting your apps across cultures my friends
Cheerios
Xavier
Xavier,

Gosh I cannot wait to dig into your reply!  I won't be able to do it 
for this CD, but never fear, as when I return in 10 days I will be 
doing a mass CD mailout.  It would make me a very happy girl to do 
these CD's the way I envision.  (These CD's will not produce direct 
income, they are to send to reviewers and magazines and the like. 
'Tis my first promotional CD.)

Shari C
--
--Shareware Games for the Mac--
http://www.gypsyware.com
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


Re: Getting the system profile

2003-07-10 Thread Richard Gaskin
MisterX wrote:

>> Also, if no CD is loaded, it spits up an error dialog, another no no.
> 
> I dont know where you saw this... I wonder, was it the net movie with
> Sandra Bullock? ;))

No, XP.

If you check for the existence of a file on a removable media drive with no
media loaded, XP throws up a dialog warning you that the drive is not ready.

-- 
 Richard Gaskin 
 Fourth World Media Corporation
 Developer of WebMerge 2.2: Publish any database on any site
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
 Tel: 323-225-3717   AIM: FourthWorldInc

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


Re: Getting the system profile

2003-07-10 Thread Scott Rossi
Recently, "MisterX"  wrote:

> try www.sysinternals.com

I tried this and got an error page "File or Page Not Found".

Do you have any other resources for shell variables MC can access?

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-
E: [EMAIL PROTECTED]
W: http://www.tactilemedia.com

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


RE: Getting the system profile

2003-07-10 Thread MisterX

Shari, dear reticents... ;)

> The volumes on Windows only give the drive letters, A, B, C, etc. and
> do not even tell you which drive is being used for the CD.  Also, a
> user prompt is a big no no for this, must be done behind the scenes.

No user prompt required... dont worry...

bonus at the end...
but it'll be quite a full detailed email ...

Lets start...

> Also, if no CD is loaded, it spits up an error dialog, another no no.

I dont know where you saw this... I wonder, was it the net movie with
Sandra Bullock? ;))

Regardless of Windows versions, strictly in xtalk,
list the volumes:

  put the volumes into drivelist

Then repeat for each line driveletter
  put driveletter & "install\win32\myfile.win" into myfile
  get there is a file myfile then
  if not it then exit gracefuly

  if not parsesecurequantummultidimensionalcrc(url thefile) then
explodePC -- pirates & industrial spys only
exit gracefully
  end if

 I got my file, im happy, Icanrunnow, makemillionsformyuser

> cool on Mac.  But Windows is a bugger for this.  I thought I had it
> solved until I tested it on Windows last night, and discovered that
> my wondrous solution is not cross platform :-(

Windows is arcane technology but remember that unix is where shells
started and that's precompustoric and your new macosx is just not
"openly" showing it... It's dragging a zillion pounds mamooth GUI
on top of this shell... the shell's d fastest "online" thing there is...

also, dont complain about windows, lotus notes and vi are far worse
examples than miswindoze. It's just DOS. At work, I use MC to parse
these dos commands by the thousands weekly with an mc made button!

Getting the volume name is easy... DOS stuff in other words.
DOS has been around for longuer than even HyperTalk...
DOS is just another less-ugly-than-PERL language...

type 'help' in a dos window to find out more...

I tested this on Windows 98se & 2000
and follows is the basic features you must deal with:

get shell("vol" && driveletter)

C:\>vol f:
 Volume in drive X is XOS
 Volume Serial Number is E494-1388

or in a empty diskette cdrom drive:

C:\>vol v: = The device is not ready. -- my empty dvd drive

You must know that any Windows process can be done
behind the scenes and transparently. There wont even be
application switching. It can even be done in a background
process with at or as an NT service with full network/domain
access anywhere (NTResKit may be req.)

To hide the windows command use the hideconsole global.

This will completely hide the command/shell window. Remember
that Win95,98,se or, god-help-ya, winME use command.exe and
winNT (nt4,2k,xp)use cmd.exe. And linux, well... uh... sh?

So be careful about which version of windows is in use...
Just in case.

This you can find with:

get the platform

or better if it's win_something:

get shell("ver")

if you have the reskit, try:

get shell("srvinfo -ns servername") -- ma favorite
 -- includes shares and full drive info and spX and
and nics and cpus andandnandannanaaan

get shell("ipconfig /all") -- = network hw/sw config

and there's many many more... try www.sysinternals.com

Least but not last, make sure your "the directory" global
is pointing to a valid drive before using them (c: is a
great default.) Otherwise you get std cmd errors.

W98 "Invalid drive specification"
W2K "The system cannot find the drive specified."

Nonetheless, with the above, you
are armed to tackle all the eventuallities in windows. No
xcmds required, no user input, no shells in your face,
clean as a mac! On gross terms of course...

Oh yes... one last reminder: the line positions and even the
column positions of the output of these shell commands may
vary depending on different versions of these commands!

srvinfo in the occurence...

check EVERYTHING! MS programmed 'it'!

--

More thoughts out of context and none of my business...

Try an online registration (name+password exchange through mail...)
That's very effective... clean and pro...

I also sent you previously the link to the full API from
sysexternals just in case you really want that itty bit
of cdrom info that bad. You'll need a Visual C++ license
and lots more patience than with HC, MC and RR together
but it's the win32 way!

Best of lucks porting your apps across cultures my friends

Cheerios
Xavier

--

The only thing better than EOC is a Z3 M Coupe with quad neutron PBCs!
Great for caravan passing or people with high beams on...
Go wild at http://monsieurX.com

--

-- bonus scripts from XOS

on StartUp

checkShellPlatform

-
-- Shell Functions --
-

on CheckWinShellPlatform
  if (the platform = "win32") and (word 1 of the systemversion is "windows")
then
set the shellcommand to "command.com"
  else
set the shellcommand to "cmd.exe"
  end if

  set the directory to "c:"

  -- Get OS info...
  put shell("ver") into os[version]
  put shell("ipconfig") into os[networkinfo]

  -- bonus pseudo scripts

  -- if nt 

Re: Getting the system profile

2003-07-10 Thread miscdas
[EMAIL PROTECTED] writes: 

Shari writes:
[snip]

As a workaround in the meantime, have you considered walking through the
drive list looking for a specific file?  That would at least let you 
know
whether a specific CD is mounted.  

--
 Richard Gaskin
Tried it. But XP kills it.  

Instead of just passing it over if there is not, it spits up an error 
window.  Bad.  

Shari C  

==
You need to navigate deeper into the folders in the system Information. 
CD-ROM drive info, including: drive letter, if media is loaded, status, 
etc.,is here  

System Information\Components\Multimedia\CD-ROM  

miscdas  

===
BTW, WIN XP pro uses msinfo32.exe in place of winmsd.exe 

miscdas 

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


Re: Getting the system profile

2003-07-10 Thread Shari
Can you use a "try/catch" structure to snag the error so that it 
doesn't show up on screen? (I'm not sure if this works with system 
messages, but it is worth testing.)
Tried that, too :-)  Lordy I tried a bunch of stuff!  The error was 
not a Metacard error, and it still produced that danged little window.

--
--Shareware Games for the Mac--
http://www.gypsyware.com
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


Re: Getting the system profile

2003-07-10 Thread J. Landman Gay
On 7/10/03 12:56 PM, Shari wrote:

I've gotten the drives, walked thru them, and done [if there is a file 
"D:/Somefolder/Somefile"] or [if there is a folder "D:/Somefolder/"]

Instead of just passing it over if there is not, it spits up an error 
window.  Bad.
Can you use a "try/catch" structure to snag the error so that it doesn't 
show up on screen? (I'm not sure if this works with system messages, but 
it is worth testing.)

--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


Re: Getting the system profile

2003-07-10 Thread miscdas
Shari writes:
[snip]

As a workaround in the meantime, have you considered walking through the
drive list looking for a specific file?  That would at least let you know
whether a specific CD is mounted. 

--
 Richard Gaskin
Tried it. But XP kills it. 

Instead of just passing it over if there is not, it spits up an error 
window.  Bad. 

Shari C 

==
You need to navigate deeper into the folders in the system Information. 
CD-ROM drive info, including: drive letter, if media is loaded, status, 
etc.,is here 

System Information\Components\Multimedia\CD-ROM 

miscdas 

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


Re: Getting the system profile

2003-07-10 Thread Klaus Major
Hi Shari,

Could you look for a volume name and, if not found, prompt the user 
to load
the CD?

Regards,

Scott Rossi
Nope.

The volumes on Windows only give the drive letters, A, B, C, etc. and 
do not even tell you which drive is being used for the CD.  Also, a 
user prompt is a big no no for this, must be done behind the scenes. 
Also, if no CD is loaded, it spits up an error dialog, another no no.

No problemo on Mac.  Mac gives the names of the volumes.  So all is 
cool on Mac.  But Windows is a bugger for this.  I thought I had it 
solved until I tested it on Windows last night, and discovered that my 
wondrous solution is not cross platform :-(

If I could get my hands on the system info that the program winmsd.exe 
compiles, the way I can get Apple System Profiler info, I could parse 
what I need.

Shari C
maybe this could help you out:

http://www.xworlds.com/metacard/welcome.htm

Click on "Externals Collection"

There you can dl the old x-collection of Tuviah, where the win version 
will

"CD ROMs - get a list of currently available CD ROM drives" and more, 
of course :-)

Hope that helps.

Regards

Klaus Major
[EMAIL PROTECTED]
www.major-k.de
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


Re: Getting the system profile

2003-07-10 Thread Shari
As a workaround in the meantime, have you considered walking through the
drive list looking for a specific file?  That would at least let you know
whether a specific CD is mounted.
--
 Richard Gaskin
Tried it.  But if there is no media in the drive, it spits out an 
error on XP, instead of just letting me get the info quietly.  I've 
read about this on the list.  That it wouldn't spit out an error on 
other Windows platforms.  But XP kills it.

I've gotten the drives, walked thru them, and done [if there is a 
file "D:/Somefolder/Somefile"] or [if there is a folder 
"D:/Somefolder/"]

Instead of just passing it over if there is not, it spits up an error 
window.  Bad.

Shari C

--
--Shareware Games for the Mac--
http://www.gypsyware.com
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


Re: Getting the system profile

2003-07-10 Thread Shari
Could you look for a volume name and, if not found, prompt the user to load
the CD?
Regards,

Scott Rossi
Nope.

The volumes on Windows only give the drive letters, A, B, C, etc. and 
do not even tell you which drive is being used for the CD.  Also, a 
user prompt is a big no no for this, must be done behind the scenes. 
Also, if no CD is loaded, it spits up an error dialog, another no no.

No problemo on Mac.  Mac gives the names of the volumes.  So all is 
cool on Mac.  But Windows is a bugger for this.  I thought I had it 
solved until I tested it on Windows last night, and discovered that 
my wondrous solution is not cross platform :-(

If I could get my hands on the system info that the program 
winmsd.exe compiles, the way I can get Apple System Profiler info, I 
could parse what I need.

Shari C
--
--Shareware Games for the Mac--
http://www.gypsyware.com
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


Re: Getting the system profile

2003-07-10 Thread Richard Gaskin
(cc'd: to the "improve" list to serve as a feature request)

Shari wrote:

>> What information are you after?  A lot of system info is available directly
>> in MetaTalk
>> 
>> --
>> Richard Gaskin
> 
> Nothing that gives me anything I can work with.
> 
> There are a lot of things I'd like access to, but urgently, the drive
> letter of the CD ROM and whether media is loaded and either the name
> of the media or files on the media.  This is URGENT.  Urgent as in I
> will have to scrap the project today if I don't find a solution, and
> put out something that is not satisfactory to what it needs to
> accomplish.
> 
> There are several other pieces of info I need for projects I am
> working on.  For Mac, I could probably use an XCMD, presumably
> Rinaldi's work in MC.  But this doesn't do much as my programs are
> cross platform.  The objective is NOT to use some 3rd party utility
> that may not be installed on the host computer, but system programs
> that would be.
> 
> Ideally I would like access to the serial number of a disk, such as a
> CD, I know that floppies have built in serial numbers.  But I'm not
> holding out hope for this.  At the very least, I need to query that a
> specific CD is loaded, and access files on that CD.

I see.  Yep, it would be great to have something like "the detailed drives"
to give us that sort of information.

As a workaround in the meantime, have you considered walking through the
drive list looking for a specific file?  That would at least let you know
whether a specific CD is mounted.

-- 
 Richard Gaskin 
 Fourth World Media Corporation
 Developer of WebMerge 2.2: Publish any database on any site
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
 Tel: 323-225-3717   AIM: FourthWorldInc

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


Re: Getting the system profile

2003-07-10 Thread Scott Rossi
Recently, Shari wrote:

> At the very least, I need to query that a
> specific CD is loaded, and access files on that CD.

Could you look for a volume name and, if not found, prompt the user to load
the CD?

Regards,

Scott Rossi
Creative Director

Tactile Media, Multimedia & Design
Email: [EMAIL PROTECTED]
Web: www.tactilemedia.com

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


Re: Getting the system profile

2003-07-10 Thread Shari
What information are you after?  A lot of system info is available directly
in MetaTalk
--
 Richard Gaskin
Nothing that gives me anything I can work with.

There are a lot of things I'd like access to, but urgently, the drive 
letter of the CD ROM and whether media is loaded and either the name 
of the media or files on the media.  This is URGENT.  Urgent as in I 
will have to scrap the project today if I don't find a solution, and 
put out something that is not satisfactory to what it needs to 
accomplish.

There are several other pieces of info I need for projects I am 
working on.  For Mac, I could probably use an XCMD, presumably 
Rinaldi's work in MC.  But this doesn't do much as my programs are 
cross platform.  The objective is NOT to use some 3rd party utility 
that may not be installed on the host computer, but system programs 
that would be.

Ideally I would like access to the serial number of a disk, such as a 
CD, I know that floppies have built in serial numbers.  But I'm not 
holding out hope for this.  At the very least, I need to query that a 
specific CD is loaded, and access files on that CD.

--
--Shareware Games for the Mac--
http://www.gypsyware.com
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


Re: Getting the system profile

2003-07-10 Thread Richard Gaskin
Shari wrote:

> On Mac, the following will put the system profile into variable sysProf:
>
> set the directory to specialFolderPath(Apple)
> put "tell application" && quote & "Apple System Profiler" &
> quote & return & \
> "get the system profile" & return & \
> "end tell" into getInfo
> put "tell application" && quote & "Apple System Profiler" &
> quote & return & \
> "close window" && quote & "Apple System Profiler" & quote &
> return & \
> "end tell" into closeProfiler
> do getInfo as appleScript
> put the result into sysProf
> do closeProfiler as appleScript
> 
> 
> How do I do the same on Windows?

What information are you after?  A lot of system info is available directly
in MetaTalk

-- 
 Richard Gaskin 
 Fourth World Media Corporation
 Developer of WebMerge 2.2: Publish any database on any site
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
 Tel: 323-225-3717   AIM: FourthWorldInc

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard