Имя пользователя:
Пароль:
 

Показать сообщение отдельно

Ветеран


Сообщения: 900
Благодарности: 86

Профиль | Отправить PM | Цитировать


Цитата Iska:
Покажите реальный код. »
Вот

1.cmd
Скрытый текст

Код: Выделить весь код
Set Papka=C:\Program Files\AkelPadmax_port

Set ProcessName=AkelPad.exe

Set Path1=%WinDir%\System32\Attrib.exe
Set Path2=%WinDir%\System32\TaskList.exe
Set Path3=%WinDir%\System32\Find.exe
Set Path4=%WinDir%\System32\Taskkill.exe
Set Path5=%WinDir%\System32\Ping.exe

Cls

@Echo Off

If Not Exist "%Path1%" (
GoTo NotFound
)

If Not Exist "%Path2%" (
GoTo NotFound
)

If Not Exist "%Path3%" (
GoTo NotFound
)

If Not Exist "%Path4%" (
GoTo NotFound
)

If Not Exist "%Path5%" (
GoTo NotFound
)

Cd /D "%Papka%"

Start /Wait "" %ProcessName%

Exit

:NotFound
Echo Ne najden fajl:
@Echo.
If Not Exist "%Path1%" (
Echo "%Path1%"
@Echo.
)
If Not Exist "%Path2%" (
Echo "%Path1%"
@Echo.
)
If Not Exist "%Path3%" (
Echo "%Path1%"
@Echo.
)
If Not Exist "%Path4%" (
Echo "%Path1%"
@Echo.
)
If Not Exist "%Path5%" (
Echo "%Path1%"
@Echo.
)
Echo Zavershenie raboty fajla "%~0".
@Echo.
Echo Nazhmite lyubuyu knopku na klaviature. 
@Echo.
Pause > Nul
Exit

Отправлено: 13:21, 12-02-2015 | #12