10sec program

Discussion in 'Programming' started by joso162, Apr 12, 2010.

  1. #1
    I am suffering for several days and not to succeed. Can anyone give me some sort of script or something.
    How to make a simple program that when you open it he wait 10sec and than open another program locadet C:/5.exe . The program must be silent. So when you click on it 10sec nothing happens after 10 seconds he open another application.
    Thanks
     
    joso162, Apr 12, 2010 IP
  2. ccoonen

    ccoonen Well-Known Member

    Messages:
    1,606
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    160
    #2
    You could build a .NET console app that waits for 10 seconds then shellexecutes another app - and you could have a scheduled task launch it every X hours silently
     
    ccoonen, Apr 12, 2010 IP
  3. NeoCambell

    NeoCambell Peon

    Messages:
    456
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Logic is very simple as ccoonen said.

    1. Write a console app using any language (.Net, VC++, VB6, etc..)
    2. Wait for 10 seconds (Mostly we use a command like Sleep(10 * 1000);
    3. Shell Execute the other application

    That's it.
     
    NeoCambell, Apr 14, 2010 IP