Help me with a auto startup script (1 Viewer)

mr viggo

MP Donator
  • Premium Supporter
  • March 1, 2008
    500
    68
    Home Country
    Sweden Sweden
    Until now, I have just put a shortcut to the specific .exe in the autostart folder and that works great.

    But there's a particular .exe that launches to fast and I want it to be delayed for like 5 seconds at win start up. So can anybody point me in the right direction to do this, please.
     

    rekenaar

    Retired Team Member
  • Premium Supporter
  • December 17, 2006
    4,421
    805
    Home Country
    South Africa South Africa
    You can create a batch file and some smart scripting to cater for the delay.

    Then you will end up with the pmsleep.bat file from above as well as something of your own, lets say mystartup.bat, similar to this:
    @echo off
    rem wait 10 seconds
    call pmsleep 10
    rem ------------
    rem start next program
    start myprogram.exe

    save both files to the exe's directory and add mystartup.bat to your windows startup folder.
     

    mr viggo

    MP Donator
  • Premium Supporter
  • March 1, 2008
    500
    68
    Home Country
    Sweden Sweden
    Ok, so I'm at this again. I had a really simple working .vbs-script long time ago but I can't find anywhere. It was delay of 15 seconds launching an lnk -> exe.

    The .vbs was located in my autostart folder, pointing to a simple win shortcut file that launched an exe in a minimized window. If I recall correctly, it looked kinda like this:

    Code:
    @echo off
    
    delay 15000
    run c:\user\desktop\shortcut.lnk
    end

    Perhaps a line or two more but not much more..

    Help please, I'm really lost on this one and google doesn't seem to be much help.


    Edit: solved it, created a start.bat and put it in startup folder

    Code:
    @ECHO OFF
    
    TIMEOUT /T 15
    REM Total Delay = 15 seconds
    START /min "" "[I]path to file[/I].exe"
     

    Users who are viewing this thread

    Top Bottom