Results 1 to 16 of 16

Thread: Remote ShutDown With Timer And Comment

Threaded View

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2006
    Location
    New Brunswick, Canada
    Posts
    30

    Exclamation Remote ShutDown With Timer And Comment

    Im having a little problem with this one too


    Server
    VB Code:
    1. If Left(incommingData, 9) = "shutdown " Then
    2.     Shell Split(incommingData)(0) & Split(incommingData)(1) & " -c " & Split(incommingData)(2)
    3. End If

    Client
    VB Code:
    1. Private Sub shutdowntimer_Click()
    2. Dim Data11 As String
    3. Data11 = "shutdown " & "-s -f -t " & txttimer.Text & txtcomment.Text
    4. Winsock.SendData Data11
    5. End Sub

    When ever I try to start it, it says

    Run-Time Error '53':
    File not found

    I had it working but I forgot to save when I closed it not I cant get it to work again someone help please

    I think I know whats wrong it needs " at front and " at end but cant get them in
    Last edited by GoldenZero; Feb 28th, 2006 at 09:16 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width