Your Ad Here Your Ad Here
Results 1 to 2 of 2

Thread: Batch File Question

  1. #1
    私は日本語を知らない。
    Join Date
    Dec 2002
    Location
    Lemoore, CA
    Age
    32
    Posts
    59
    I 'm making a batch file to annoy my friend it looks like this

    Code:
    :loop
    net send IP Removed "I am so bored"
    goto loop
    I want to know how to make it only loop so many times though. I would figure to do this I would set a variable and then add one to it evertime and tell it only to loop if the variable is under whatever number. I don't know if you can do that with a batch file or how if you can. Does anyone know.

  2. ** REGISTER to REMOVE This Ad On The Site!! **
    Your Ad Here Your Ad Here
  3. Software & Hardware   -   #2
    Code:
    :loop
    net send 555.666.777.888 "Replace this message and IP number"
    set c=!%c%
    if not %c%==!!!!!!!!!! goto loop
    net send 555.666.777.888 "This was the last time."
    Set the last line to another amount of !'s to do it more times. Every ! will loop once.
    You can remove/change the last net send.

    The following one is modified, you'll need a choice.com file from a 9X machine too.
    This will wait one second between every message.
    Code:
    :loop
    net send 555.666.777.888 "Replace this message and IP number"
    set c=!%c%
    choice /n /c:@ /t:@,1
    if not %c%==!!!!!!!!!! goto loop
    net send 555.666.777.888 "This was the last time."

Bookmarks

Posting Permissions

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