B
Brian
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.
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.