Einzelnen Beitrag anzeigen

Namenloser

Registriert seit: 7. Jun 2006
Ort: Karlsruhe
3.724 Beiträge
 
FreePascal / Lazarus
 
#18

AW: FTP Upload per VBScript

  Alt 18. Aug 2010, 21:34
Als Denkanstoß: Du kannst die Batch-Datei intern mit einem bestimmten Parameter aufrufen, um Funktionsaufrufe zu simulieren. Etwa so:
Code:
@echo off

REM Funktionsaufruf abfragen
if %1==_connectftp goto ConnectFTP

:Menu
echo Menu
echo ------------
echo [1] Case 1
echo [2] Case 2
echo.

set asw=0
set /P asw="Auswahl: "

if %asw%==1 goto Case1
if %asw%==2 goto Case2
goto Menu

:Case1
REM Funktionsaufruf
call %~dpnx0 _connectftp
REM ...
goto :End

:Case1
REM Funktionsaufruf
call %~dpnx0 _connectftp
REM ...
goto :End

:ConnectFTP
REM ...

:End
  Mit Zitat antworten Zitat