Click here to Skip to main content
15,899,754 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
When the client clicks and executes button event, how can he check if the server pc is having .dmp or not?

[edit]Subject changed. Unfortunately, your original subject is puerile UK slang for going to the lavatory - as you can see from the comments. OriginalGriff[/edit]
Posted
Updated 4-Feb-11 9:11am
v3
Comments
Sandeep Mewara 4-Feb-11 13:58pm    
Not clear. Please elaborate.

Use question body to add details and mention clearly all that you tried and are stuck up with.
Henry Minute 4-Feb-11 14:01pm    
Does it use more than the usual amount of toilet tissue?

Sorry. :( Couldn't resist.
Kschuler 4-Feb-11 14:27pm    
If we could vote on question comments...that would have gotten a 5.
Henry Minute 4-Feb-11 14:46pm    
Thanks. :))
OriginalGriff 4-Feb-11 15:16pm    
Sorry to spoil your fun Henry - I changed the subject line...

What this service is running? If it produced DMP files (I avoided using the verb form of the term to avoid further toilet humor :)) it mean it runs some service accessible through network, Web service or something else, right?

If so, why not adding a simple "diagnostics" function to one of the service interfaces which would simply answer your question on client's request? Something like "GetLoggingStatus"...

See my comment to the Answer by SIFNOk — that would be quite unsafe practice. In contrast, if you include this diagnostics function in your service interface, you will get benefits of authentication and the same security stuff you already using... How about that?

—SA
 
Share this answer
 
v4
Comments
Espen Harlinn 5-Feb-11 13:24pm    
Sensible relpy!
Sergey Alexandrovich Kryukov 12-Mar-12 19:58pm    
Thank you, Espen.
--SA
Hi agrace

Im not to sure the full request what you are asking but to check whether a file exists on a remote server can be achieved if the file location is known by the following:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
       If My.Computer.FileSystem.FileExists(\\REMOTESERVERNAME\C$\FILENAME.DMP) = True Then
           MsgBox("File Exists")
       Else
           MsgBox("file doesnt exist")
       End If
   End Sub



im not sure whether this will help buts this will check whether the file exists in the specified location.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 4-Feb-11 17:15pm    
The problem with this is having a file service working and having the sensitive areas accessible to the clients unconditionally - very unsafe!
--SA
SIFNOk 4-Feb-11 17:31pm    
Very Veryy Truee Sakryukov! I Agree 100% not recommended!
agrace27 5-Feb-11 0:37am    
Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.



Protected Sub Button3_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button3.Click
If My.Computer.FileSystem.FileExists("\\192.168.0.53\30.01.2011\ALL-02022011_03022011HQ_ATTEND.DMP") = True Then
MsgBox("File Exists")
Else
MsgBox("file doesnt exist")
End If
End Sub

i alre havin the file in this server IP given above, but when debug not going in for fil exists, this running from client pc

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900