PC Review


Reply
Thread Tools Rate Thread

Determining OS from VBA

 
 
=?Utf-8?B?QnJpYW4=?=
Guest
Posts: n/a
 
      21st Apr 2006
I have an app in which I am shelling out to FTP to download some files but
killing the FTP session if it times out or otherwise hangs. However, Windows
2000 uses kill, whereas Windows XP uses taskkill. How can I determine the OS
at runtime so that I do not have to manually change my code depending on the
OS version of the station on which it is installed. There are really only
three OS candidates in my environment: Windows 2000 (server or workstation),
Windows 2003 server, and Windows XP Pro.
 
Reply With Quote
 
 
 
 
Douglas J Steele
Guest
Posts: n/a
 
      21st Apr 2006
http://www.mvps.org/access/api/api0055.htm at "The Access Web" has most of
it. It just hasn't been updated to reflect Windows 2003 Server. However, you
should be able to figure the necessary constants out for yourself (sorry, I
don't have ready access to a Win2003 server at the moement, so I can't get
them for you).

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


"Brian" <(E-Mail Removed)> wrote in message
news:290B936C-4565-4763-987B-(E-Mail Removed)...
> I have an app in which I am shelling out to FTP to download some files but
> killing the FTP session if it times out or otherwise hangs. However,

Windows
> 2000 uses kill, whereas Windows XP uses taskkill. How can I determine the

OS
> at runtime so that I do not have to manually change my code depending on

the
> OS version of the station on which it is installed. There are really only
> three OS candidates in my environment: Windows 2000 (server or

workstation),
> Windows 2003 server, and Windows XP Pro.



 
Reply With Quote
 
=?Utf-8?B?QnJpYW4=?=
Guest
Posts: n/a
 
      21st Apr 2006
Thanks. Yes, I can get the additional constants. This will save some manual
tinkering with VBA during testing & implementation.

"Douglas J Steele" wrote:

> http://www.mvps.org/access/api/api0055.htm at "The Access Web" has most of
> it. It just hasn't been updated to reflect Windows 2003 Server. However, you
> should be able to figure the necessary constants out for yourself (sorry, I
> don't have ready access to a Win2003 server at the moement, so I can't get
> them for you).
>
> --
> Doug Steele, Microsoft Access MVP
> http://I.Am/DougSteele
> (no e-mails, please!)
>
>
> "Brian" <(E-Mail Removed)> wrote in message
> news:290B936C-4565-4763-987B-(E-Mail Removed)...
> > I have an app in which I am shelling out to FTP to download some files but
> > killing the FTP session if it times out or otherwise hangs. However,

> Windows
> > 2000 uses kill, whereas Windows XP uses taskkill. How can I determine the

> OS
> > at runtime so that I do not have to manually change my code depending on

> the
> > OS version of the station on which it is installed. There are really only
> > three OS candidates in my environment: Windows 2000 (server or

> workstation),
> > Windows 2003 server, and Windows XP Pro.

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Need Help With Determining Age fredg Microsoft Access Queries 0 16th Feb 2009 01:09 AM
determining the log-on Ned White Microsoft ASP .NET 2 26th Mar 2008 12:30 AM
determining the log-on Ned White Microsoft C# .NET 2 26th Mar 2008 12:30 AM
Determining if age <=xx DubboPete Microsoft Access Form Coding 1 17th Mar 2005 08:28 AM
Determining one's age Jim Gudaitis Microsoft Access Queries 2 23rd Sep 2003 07:44 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:56 AM.