Hallo
Ich habe folgendes Problem:
Ich möchte eine Batchdatei
Code:
@echo off %debug%
if not "%OS%"=="Windows_NT" exit /b
setlocal
REM ------------------
for %%l in (Z D E F G H I J K L M N OP Q R S T U V W X Y ) do (
Rem ------------------
set LW=%%l
mountvol %%l: /L >nul
if errorlevel 1 (
subst | findstr /B "%%l:" > nul
if errorlevel 1 (
net use %%l: >nul 2>&1
if errorlevel 1 goto mount
)
)
)
echo Kein Laufwerksbuchstabe frei
pause
exit /b
:mount
Rem ------------------
truecrypt.exe /volume %~d0\PortableApps.tc /a /q /l %LW%
Rem ------------------
Z:\PortableApps\PStart.exe
per autostart ausführen. Das klappt auch.
Doch wenn die Batchdatei versucht TrueCrypt aufzurufen produziert sie eine meldung das sie TrueCrypt nicht starten konnte.
Führe ich die Batchdatei danch per Hand aus funktioniert alles einwandfrei.
nun meine Frage: wie kann ich es anstellen, eine durch Autostart ausgeführte Batchdatei dazu zu bringen ein Programm zu laden das im selben Ordner ist?
Hier noch ein paar Bilder: