aMule Forum

English => Feature requests => Topic started by: woutermense on January 14, 2010, 01:56:17 PM

Title: aMuleCMD: dos/windows batch scipt errorlevel.
Post by: woutermense on January 14, 2010, 01:56:17 PM
Hey all, I would like to do something like this in a batch script (see last code line):

Code: [Select]
@echo off
set link=%1
for /f "useback tokens=*" %%a in ('%link%') do set link=%%~a
echo Requesting link from server: "%link%"
echo.
"c:\Program Files (x86)\aMule\aMuleCMD.exe" /h Server /P Pass /c "add %link%"
if ERRORLEVEL 1 pause

Normally the batch sript runs and then the window automatically closes, thats okay but I would like it to remain open when something goes wrong. aMuleCMD doesnt set errorlevel so that is my feature request :)
Title: Re: aMuleCMD: dos/windows batch scipt errorlevel.
Post by: Stu Redman on January 14, 2010, 11:21:53 PM
Good idea.  :)