Announcement

Collapse
No announcement yet.

Multi USdownloader - run USD multiple time's

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Multi USdownloader - run USD multiple time's

    *** it seem's that i post it in wrong section, plz move it to the true section ***

    compile this code with bat2exec and save it is USDdownloader directory
    and replace USD shortcut with my file

    youtube example:

    Code:
    http://www.youtube.com/watch?v=zq029Um66yE
    source code:

    Code:
    set i=0
    set errorlevel=
    set USD=USDownloader
    :check
    tasklist | find "%USD%.exe"
    if errorlevel 1 (
    start "" /b "%USD%.exe"
    exit /b
    )
    if errorlevel 0 (
    goto :make_another
    )
    pause
    :make_another
    set errorlevel=
    set /a i=%i%+1
    title "USDownloader_%i%.exe"
    if exist "USDownloader_%i%.exe" (
    goto :sec_check
    )
    if not exist USDownloader_%i%.exe (
    copy /y "%usd%.exe" "%usd%_%i%.exe"
    copy /y "%usd%.ini" "%usd%_%i%.ini"
    ping -n 3 127.0.0.1>nul
    "%usd%_%i%.exe"
    goto :clean
    )
    pause
    :sec_check
    set errorlevel=
    tasklist | find "%USD%_%i%.exe"
    if errorlevel 1 (
    "%USD%_%i%.exe"
    goto :clean
    )
    if errorlevel 0 (
    goto :make_another
    )
    pause
    :clean
    ping -n 3 127.0.0.1>nul
    tasklist | find "%USD%_%i%.exe"
    if errorlevel 1 (
    ping -n 3 127.0.0.1>nul
    del /q /f /a "%usd%_%i%.*"
    del /q /f /a "%usd%_%i%*.*"
    ping -n 3 127.0.0.1>nul
    exit /b
    ) else (
    goto :clean
    )
    pause
    Last edited by maorosh; 23rd September 2009, 10:48.
Working...
X