Hallo,
wenn in der Schleife Loop, Files,... das Verzeichnis nicht gefunden wird, wird die Schleife sofort beendet. Wie kann ich das Ereignis abfangen?
try catch oder errorlevel funktionieren nicht, oder hab ich sie falsch platziert?
Loop, Files, %pfad%%name%\data\Import\* , D
{
}
if Errorlevel
msgbox, Pfad existiert nicht
ODER:
try {
Loop, Files, %pfad%%name%\data\Import\* , D
{
}
} catch {
msgbox, Pfad existiert nicht
}
Loop, Files ErrorLevel?
Moderator: jNizM
Re: Loop, Files ErrorLevel?
Hallo,
wie wärs damit?
wie wärs damit?
Code: Select all
IfExist, %pfad%%name%\data\Import\
Loop, Files, %pfad%%name%\data\Import\* , D
{
}
Else
msgbox, Pfad existiert nicht
Re: Loop, Files ErrorLevel?
Ähm okay. ich war so auf errorlevel und try... fixiert, dass mir das einfachste nicht eingefallen ist.
Danke
Danke
Who is online
Users browsing this forum: No registered users and 41 guests