1.

Solve : Runtime error 217 at 0281F57D and 216?

Answer»

Runtime error 217 at 0281F57D and 216

I'm obtaining these errors when I try to run the ylaunch2 bat with the lines of the programs with the option window minimized.

The content

rem M:\Archivos de programa\AutoCAD 2002 Esp\acad.exe
M:\Documents and Settings\JOSE\Escritorio\Utilidades Varias\SOFTWARE TECNICOS\AutoCAD 2002 Esp.lnk
ping -n 1 -w 25000 1.1.1.1 >nul
wait
"M:\Archivos de programa\Procuno\BTwin\BtWin.exe"
rem "M:\Documents and Settings\JOSE\Escritorio\Utilidades Varias\SOFTWARE TECNICOS\BTwin. Baja Tensión.lnk"
ping -n 1 -w 25000 1.1.1.1 >nul
Y:\Ingenieria
ping -n 1 -w 5000 1.1.1.1 >nul
ping -n 1 -w 5000 1.1.1.1 >nul
Y:\GABINETE\PROYECTOS
ping -n 1 -w 5000 1.1.1.1 >nul
ping -n 1 -w 5000 1.1.1.1 >nul
M:\Documents and Settings\JOSE\Escritorio\Utilidades Varias\RunGoldmine.bat
ping -n 1 -w 5000 1.1.1.1 >nul
ping -n 1 -w 5000 1.1.1.1 >nul
M:\Documents and Settings\JOSE\Datos de programa\Microsoft\Internet Explorer\Quick Launch\Mostrar escritorio.scf
M:\Documents and Settings\JOSE\Escritorio\Utilidades Varias\mm\Menu Gabinete.doc
rem M:\Documents and Settings\JOSE\Escritorio\Utilidades Varias\SOFTWARE TECNICOS\Acceso directo a Menu Gabinete.doc.lnk
ping -n 1 -w 50000 1.1.1.1 >nul
M:\Documents and Settings\JOSE\Datos de programa\Microsoft\Internet Explorer\Quick Launch\Mostrar escritorio.scf


The screenshots








I created direct LINK and in the PROPERTIES : window minimized, but I obtain these errors.

the screenshots



[attachment deleted by admin]I suspect one of the .exe is throwing this error. I suggest you add a pause statement before each to narrow down which one doesn't like it. Once you know you can decide how to work around it.

Quote from: uSlackr on May 04, 2009, 02:14:11 PM

I suspect one of the .exe is throwing this error. I suggest you add a pause statement before each to narrow down which one doesn't like it. Once you know you can decide how to work around it.



I do inmediately and will comment

I try this :

rem M:\Archivos de programa\AutoCAD 2002 Esp\acad.exe
M:\Documents and Settings\JOSE\Escritorio\Utilidades Varias\SOFTWARE TECNICOS\AutoCAD 2002 Esp.lnk
pause
ping -n 1 -w 25000 1.1.1.1 >nul
wait
pause
"M:\Archivos de programa\Procuno\BTwin\BtWin.exe"
pause
rem "M:\Documents and Settings\JOSE\Escritorio\Utilidades Varias\SOFTWARE TECNICOS\BTwin. Baja Tensión.lnk"
ping -n 1 -w 25000 1.1.1.1 >nul
Y:\Ingenieria
ping -n 1 -w 5000 1.1.1.1 >nul
ping -n 1 -w 5000 1.1.1.1 >nul
Y:\GABINETE\PROYECTOS
ping -n 1 -w 5000 1.1.1.1 >nul
ping -n 1 -w 5000 1.1.1.1 >nul
M:\Documents and Settings\JOSE\Escritorio\Utilidades Varias\RunGoldmine.bat
ping -n 1 -w 5000 1.1.1.1 >nul
ping -n 1 -w 5000 1.1.1.1 >nul
M:\Documents and Settings\JOSE\Datos de programa\Microsoft\Internet Explorer\Quick Launch\Mostrar escritorio.scf
pause
M:\Documents and Settings\JOSE\Escritorio\Utilidades Varias\mm\Menu Gabinete.doc
pause
rem M:\Documents and Settings\JOSE\Escritorio\Utilidades Varias\SOFTWARE TECNICOS\Acceso directo a Menu Gabinete.doc.lnk
ping -n 1 -w 50000 1.1.1.1 >nul
M:\Documents and Settings\JOSE\Datos de programa\Microsoft\Internet Explorer\Quick Launch\Mostrar escritorio.scf


But I don't see stop or pause. Certainly I'm doing something BAD. I don't remember what to do.

Can you help me ?

I try the code above and receive no error.

After I try with this code and received the error :

rem M:\Archivos de programa\AutoCAD 2002 Esp\acad.exe
M:\Documents and Settings\JOSE\Escritorio\Utilidades Varias\SOFTWARE TECNICOS\AutoCAD 2002 Esp.lnk
echo ejecutado autocad
pause
ping -n 1 -w 25000 1.1.1.1 >nul
wait
pause
"M:\Archivos de programa\Procuno\BTwin\BtWin.exe"
echo ejecutado btwin
pause
rem "M:\Documents and Settings\JOSE\Escritorio\Utilidades Varias\SOFTWARE TECNICOS\BTwin. Baja Tensión.lnk"
ping -n 1 -w 25000 1.1.1.1 >nul
Y:\Ingenieria
ping -n 1 -w 5000 1.1.1.1 >nul
ping -n 1 -w 5000 1.1.1.1 >nul
Y:\GABINETE\PROYECTOS
ping -n 1 -w 5000 1.1.1.1 >nul
ping -n 1 -w 5000 1.1.1.1 >nul
M:\Documents and Settings\JOSE\Escritorio\Utilidades Varias\RunGoldmine.bat
ping -n 1 -w 5000 1.1.1.1 >nul
ping -n 1 -w 5000 1.1.1.1 >nul
M:\Documents and Settings\JOSE\Datos de programa\Microsoft\Internet Explorer\Quick Launch\Mostrar escritorio.scf
echo ejecutado mostrar escritorio
pause
M:\Documents and Settings\JOSE\Escritorio\Utilidades Varias\mm\Menu Gabinete.doc
echo ejecutado menu gabinete.doc
pause
rem M:\Documents and Settings\JOSE\Escritorio\Utilidades Varias\SOFTWARE TECNICOS\Acceso directo a Menu Gabinete.doc.lnk
ping -n 1 -w 50000 1.1.1.1 >nul
M:\Documents and Settings\JOSE\Datos de programa\Microsoft\Internet Explorer\Quick Launch\Mostrar escritorio.scf

I tried putting

@echo off , at the beginning, but I don't see any window and can't key nothing.


Sometimes the SCRIPT give me error and other don't give me error.


Discussion

No Comment Found