Click to See Complete Forum and Search --> : OS() & SYS(2023)
Is there a way to use os() and sys(2023) and return the results of a mapped
drive and NOT the results of the current operating system thats running the
application?
Thanks
Fred Taylor
01-03-2001, 11:16 AM
What do you mean?
SYS(2023) reports to you whatever the setting is for TMPFILES in your
CONFIG.FPW file. That's under your control, not the OS's. If you do not
specify TMPFILES, than you'll see wherever the OS has TEMP (or TMP)
environment variables set to. Go to a command prompt for your OS and type
SET to see the current settings for your environment variables.
--
Fred
Microsoft Visual FoxPro MVP
"Joe" <maui664@capital.net> wrote in message
news:3a534a32$1@news.devx.com...
>
> Is there a way to use os() and sys(2023) and return the results of a
mapped
> drive and NOT the results of the current operating system thats running
the
> application?
>
> Thanks
Thanks for the response Fred, but perhaps I'm approaching my
problem incorrectly. I have a series of mapped drives which I
want to check if MDAC_type.exe has been installed and the
appropriate dcom has been installed. I did this by picking out a
few files which is extracted from each and checked their
version. This works fine if I do this check on the machine
I'm using; however, I want to be able to do this check from one
machine and check all mapped drives. I don't believe I can
preset my config to do this. The reason I was using sys(2023) was
to return the name of the windows drive. I then parsed off the
'temp' and added 'system' since that is where these files are
extracted to.
Joe
"Fred Taylor" <ftaylor@mvps.org> wrote:
>What do you mean?
>
>SYS(2023) reports to you whatever the setting is for TMPFILES in your
>CONFIG.FPW file. That's under your control, not the OS's. If you do not
>specify TMPFILES, than you'll see wherever the OS has TEMP (or TMP)
>environment variables set to. Go to a command prompt for your OS and type
>SET to see the current settings for your environment variables.
>
>--
>Fred
>Microsoft Visual FoxPro MVP
>
>"Joe" <maui664@capital.net> wrote in message
>news:3a534a32$1@news.devx.com...
>>
>> Is there a way to use os() and sys(2023) and return the results of a
>mapped
>> drive and NOT the results of the current operating system thats running
>the
>> application?
>>
>> Thanks
>
>
Dan Freeman
01-03-2001, 12:46 PM
Sounds like the long way around. <g>
You can find out where Windows lives with GETENV("windir") or
GETENV("winbootdir").
There are also WinAPI calls for querying drive resources (including mapped
drives). Don't have any examples handy but if you post a message with the
appropriate subject, someone will.
Dan
Joe <maui664@capital.net> wrote in message news:3a535e50$1@news.devx.com...
>
> Thanks for the response Fred, but perhaps I'm approaching my
> problem incorrectly. I have a series of mapped drives which I
> want to check if MDAC_type.exe has been installed and the
> appropriate dcom has been installed. I did this by picking out a
> few files which is extracted from each and checked their
> version. This works fine if I do this check on the machine
> I'm using; however, I want to be able to do this check from one
> machine and check all mapped drives. I don't believe I can
> preset my config to do this. The reason I was using sys(2023) was
> to return the name of the windows drive. I then parsed off the
> 'temp' and added 'system' since that is where these files are
> extracted to.
>
> Joe
>
> "Fred Taylor" <ftaylor@mvps.org> wrote:
> >What do you mean?
> >
> >SYS(2023) reports to you whatever the setting is for TMPFILES in your
> >CONFIG.FPW file. That's under your control, not the OS's. If you do not
> >specify TMPFILES, than you'll see wherever the OS has TEMP (or TMP)
> >environment variables set to. Go to a command prompt for your OS and
type
> >SET to see the current settings for your environment variables.
> >
> >--
> >Fred
> >Microsoft Visual FoxPro MVP
> >
> >"Joe" <maui664@capital.net> wrote in message
> >news:3a534a32$1@news.devx.com...
> >>
> >> Is there a way to use os() and sys(2023) and return the results of a
> >mapped
> >> drive and NOT the results of the current operating system thats running
> >the
> >> application?
> >>
> >> Thanks
> >
> >
>
Thanks! This sounds like what I need.
Joe
"Dan Freeman" <dan@dfapam.com> wrote:
>Sounds like the long way around. <g>
>
>You can find out where Windows lives with GETENV("windir") or
>GETENV("winbootdir").
>
>There are also WinAPI calls for querying drive resources (including mapped
>drives). Don't have any examples handy but if you post a message with the
>appropriate subject, someone will.
>
>Dan
>
>
>
>Joe <maui664@capital.net> wrote in message news:3a535e50$1@news.devx.com...
>>
>> Thanks for the response Fred, but perhaps I'm approaching my
>> problem incorrectly. I have a series of mapped drives which I
>> want to check if MDAC_type.exe has been installed and the
>> appropriate dcom has been installed. I did this by picking out a
>> few files which is extracted from each and checked their
>> version. This works fine if I do this check on the machine
>> I'm using; however, I want to be able to do this check from one
>> machine and check all mapped drives. I don't believe I can
>> preset my config to do this. The reason I was using sys(2023) was
>> to return the name of the windows drive. I then parsed off the
>> 'temp' and added 'system' since that is where these files are
>> extracted to.
>>
>> Joe
>>
>> "Fred Taylor" <ftaylor@mvps.org> wrote:
>> >What do you mean?
>> >
>> >SYS(2023) reports to you whatever the setting is for TMPFILES in your
>> >CONFIG.FPW file. That's under your control, not the OS's. If you do
not
>> >specify TMPFILES, than you'll see wherever the OS has TEMP (or TMP)
>> >environment variables set to. Go to a command prompt for your OS and
>type
>> >SET to see the current settings for your environment variables.
>> >
>> >--
>> >Fred
>> >Microsoft Visual FoxPro MVP
>> >
>> >"Joe" <maui664@capital.net> wrote in message
>> >news:3a534a32$1@news.devx.com...
>> >>
>> >> Is there a way to use os() and sys(2023) and return the results of
a
>> >mapped
>> >> drive and NOT the results of the current operating system thats running
>> >the
>> >> application?
>> >>
>> >> Thanks
>> >
>> >
>>
>
>
William Fields
01-04-2001, 10:20 AM
Here's some other resources to check DCOM...
Q215362 - HOWTO: Detect DCOM Installation Under VFP 6.0
Q232003 - HOWTO: Determine the Version of DCOM 95/98 Using Visual Basic
--
William Fields
MCSD - Microsoft Visual FoxPro
MCP - Win2k Pro
US Bankruptcy Court
Phoenix, AZ
"While the Complexity of this Project is
several orders of magnitude less than
modeling heat flux in a fossil-fuel fired
electric utility plant using the Hottel Zone
technique, the context of each project
evolves in a remarkably similar fashion."
- Author Unknown
"Joe" <maui664@capital.net> wrote in message
news:3a535e50$1@news.devx.com...
>
> Thanks for the response Fred, but perhaps I'm approaching my
> problem incorrectly. I have a series of mapped drives which I
> want to check if MDAC_type.exe has been installed and the
> appropriate dcom has been installed. I did this by picking out a
> few files which is extracted from each and checked their
> version. This works fine if I do this check on the machine
> I'm using; however, I want to be able to do this check from one
> machine and check all mapped drives. I don't believe I can
> preset my config to do this. The reason I was using sys(2023) was
> to return the name of the windows drive. I then parsed off the
> 'temp' and added 'system' since that is where these files are
> extracted to.
>
> Joe
>
> "Fred Taylor" <ftaylor@mvps.org> wrote:
> >What do you mean?
> >
> >SYS(2023) reports to you whatever the setting is for TMPFILES in your
> >CONFIG.FPW file. That's under your control, not the OS's. If you do not
> >specify TMPFILES, than you'll see wherever the OS has TEMP (or TMP)
> >environment variables set to. Go to a command prompt for your OS and
type
> >SET to see the current settings for your environment variables.
> >
> >--
> >Fred
> >Microsoft Visual FoxPro MVP
> >
> >"Joe" <maui664@capital.net> wrote in message
> >news:3a534a32$1@news.devx.com...
> >>
> >> Is there a way to use os() and sys(2023) and return the results of a
> >mapped
> >> drive and NOT the results of the current operating system thats running
> >the
> >> application?
> >>
> >> Thanks
> >
> >
>
devx.com
Copyright Internet.com Inc. All Rights Reserved