Re: How to determine if a computer on the network is a UNIX or windows computer
- From: "Paul Randall" <paulr901@xxxxxxxxxxxx>
- Date: Mon, 7 Apr 2008 08:40:43 -0600
"imaciscoguy" <imaciscoguy@xxxxxxxxx> wrote in message
news:2eada15f-ae5e-4cdd-ba38-87113ab1f8f2@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Can I be helped? I am attempting to copy a file from several
computers
on the network, however if the computer is UNIX i must ftp if it is
windows I can copy, I know how to do both I just don't know how to
determine what method to get my file.
Hi Cisco,
Here is a possible solution, although perhaps slow and unimaginative:
In the section of code where the file is copied, try copying with one
method and if it fails, try copying with the other method. Hopefully
the failing method will generate an error which you can check for
within a short section of code bracketed by 'On Error Resume Next' and
'On Error GoTo 0' statements.
Of course, it would be much better if you could do a query as to the
OS of the computer in question. Hopefully someone will post that
solution.
-Paul Randall
.
- References:
- Prev by Date: Re: Error Creating AD users
- Next by Date: Re: How can i load other wsc without absolute path?
- Previous by thread: How to determine if a computer on the network is a UNIX or windows computer
- Next by thread: Re: How to determine if a computer on the network is a UNIX or windows computer
- Index(es):
Relevant Pages
|