CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    Join Date
    Apr 2004
    Posts
    1

    How do I make an infinite loop of opening notepads?

    I tried just doing
    system ("notepad")
    system ("notepad")
    system ("notepad")
    system ("notepad")
    system ("notepad")
    system ("notepad")
    (like about 10000)
    but that only opened 2 notepads.

    So what would it look like?

    thanks a lot.

  2. #2
    Join Date
    Dec 2001
    Location
    Ontario, Canada
    Posts
    2,236
    ummm... why?

  3. #3
    Join Date
    Nov 2002
    Location
    Los Angeles, California
    Posts
    3,863
    Maybe He/She has a lot of notes to write.
    Wakeup in the morning and kick the day in the teeth!! Or something like that.

    "i don't want to write leak free code or most efficient code, like others traditional (so called expert) coders do."

  4. #4
    Join Date
    Mar 2002
    Location
    California
    Posts
    1,582

    Re: How do I make an infinite loop of opening notepads?

    Originally posted by redhatmasta
    I tried just doing
    system ("notepad")
    system ("notepad")
    system ("notepad")
    system ("notepad")
    system ("notepad")
    system ("notepad")
    (like about 10000)
    but that only opened 2 notepads.

    So what would it look like?

    thanks a lot.
    That is the most evil thing I have ever read.

  5. #5
    Join Date
    Nov 2002
    Location
    Los Angeles, California
    Posts
    3,863
    Yah, it is pretty chilling. Makes you stop and think about
    the state of the world.
    Wakeup in the morning and kick the day in the teeth!! Or something like that.

    "i don't want to write leak free code or most efficient code, like others traditional (so called expert) coders do."

  6. #6
    Join Date
    Jul 2003
    Location
    Maryland
    Posts
    762
    Code:
    start notepad.exe
    start NotepadHax.bat
    Simple bat file. This also loads a shitload of command prompts onto the screen too

  7. #7
    Join Date
    Jun 2003
    Location
    Gjøvik, Norway
    Posts
    204
    I just looked at his nick... One of those Lunix guys with a grudge against Microsoft?

  8. #8
    Join Date
    Aug 2001
    Location
    Stockholm, Sweden
    Posts
    1,664
    Code:
    /* Nothing better to do... so let's start notepad until we die */
    for ( ; ; )
        system("notepad");

  9. #9
    Join Date
    Mar 2004
    Location
    (Upper-) Austria
    Posts
    2,899
    Originally posted by j0nas
    Code:
    /* Nothing better to do... so let's start notepad until we die */
    for ( ; ; )
        system("notepad");
    Code:
    while ( 1 == 1 )
    {
         Sleep(300); // Let's wait a little bit
         system("notepad.exe");
    }
    I'm testing now, how much notepad's my winXP can stand ... that's funny
    I am not offering technical guidiance via email or IM
    Come on share your photo with us! CG members photo album!
    Use the Code Tags!

  10. #10
    Join Date
    May 2000
    Location
    Washington DC, USA
    Posts
    715
    Code:
    rem.. NoteGo.bat....
    echo off
    :zippy
    start notepad.exe
    goto zippy

    copy that into notego.bat or notego.cmd. But that file on the path of your machine and then from any command promp just say... [ notego.bat ]

    A better one if you want to mess with somebody is to do a net send...

    NET SEND {name | * | /DOMAIN[:name] | /USERS} message

    Code:
    rem  datemaker...
    echo off
    :slappy
    net send %1 %2....
    goto slappy...

    copy that to datemaker.cmd.. and run it like this...

    datemaker.bat Beth "I control the world"

    where beth is a username....

    Now becareful because if you run this from yourown machine there is a good chance you'll get fired for harasment...

    puts up a messege box on the persons machine which they can't close.....

    Never Never do this....

    Datemaker.bat * "take this job and shove it!"

    at least not from your own machine...

  11. #11
    Join Date
    Sep 2002
    Location
    Maryland - Fear The Turtle!
    Posts
    7,537
    can this thread degenerate any more?

  12. #12
    Join Date
    Mar 2002
    Location
    California
    Posts
    1,582
    Originally posted by Mick
    can this thread degenerate any more?
    Is that a dare?

    Jeff
    Last edited by jfaust; April 5th, 2004 at 03:37 PM.

  13. #13
    Join Date
    Nov 2002
    Location
    Los Angeles, California
    Posts
    3,863
    If it wasn't a dare, then I dare you...
    Wakeup in the morning and kick the day in the teeth!! Or something like that.

    "i don't want to write leak free code or most efficient code, like others traditional (so called expert) coders do."

  14. #14
    Join Date
    Mar 2002
    Location
    St. Petersburg, Florida, USA
    Posts
    12,125
    Actually all of the above implementations will generate a finite number of notepads.

    With manual intervention, additional copies may be generated, but the number of simultanious copies will still be finite.

    We all have our good ideas, but lets try to answer the posters ORIGINAL question, rather than going off on tangents.....

    <ducking and running rapidly!!!!>
    TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
    2008, 2009,2010
    In theory, there is no difference between theory and practice; in practice there is.

    * Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions
    * How NOT to post a question here
    * Of course you read this carefully before you posted
    * Need homework help? Read this first

  15. #15
    Join Date
    Mar 2002
    Location
    California
    Posts
    1,582
    Originally posted by souldog
    If it wasn't a dare, then I dare you...
    It's tempting, but I should really wait until later when I'm not using my work's computer. Hmmm, lack of response from NoHero since he started his experiment has me a bit worried.

    It's a bit silly to shoot for infinite Notepads--that requirement is never attainable as TheCPUWizard so eloquently stated.

    Perhaps a program that opens Notepad at random intervals. Place it in the startup group of your friends computer.

    Jeff

Page 1 of 2 12 LastLast

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

Featured