Exactly the same API as we use for the remote
authentication
Dirk.
Don't forget to vote for Servers Alive in the annual
Sunbelt Target Awards
http://www.sunbelt-software.com/targetawards/
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Smith
Sent: Thursday, April 29, 2004 2:43 PM
To: [EMAIL PROTECTED]
Subject: RE: [SA-list] Checking the datetime of a remote file
Dick,
In VisualBasic I tried using WNetAddConnection2() to authenticate to the network share, but it doesn't seem to work. Even though the API call returns 0 (success), a subsequent call to FileDateTime() fails. I figured I'd check to see if anyone else has done something similar.
Mike
| "Dirk Bulinckx"
<[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 04/29/2004 12:53 AM
|
|
If you want to use remote authentication for an external check (com or errorlevel) you will have to incorporate that within the external check that you write.
Dirk.
Don't forget to vote for Servers Alive in the annual
Sunbelt Target Awards
http://www.sunbelt-software.com/targetawards/
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Smith
Sent: Thursday, April 29, 2004 2:05 AM
To: [EMAIL PROTECTED]
Subject: [SA-list] Checking the datetime of a remote file
I am looking for a good way to check the datetime of files on remote servers. Specifically, I need to be able to tell if they've been updated within the last hour or the current day. I tried to write a simple VB application that would return an errorlevel based on the result, however there is no way to define user authentication for the "External (Errorlevel)" check-type like there is for the other types.
Thanks,
Mike Smith
