Public
Function
Dateiendung(
ByVal
vDateiname
As
String
)
As
String
Dim
sEndung
As
String
Dim
iWortlaenge
As
Integer
Dim
iStellePunkt
As
Integer
iWortlaenge = Len(vDateiname)
iStellePunkt = InStrRev(vDateiname,
"."
)
sEndung = Right(vDateiname, iWortlaenge - iStellePunkt)
Dateiendung = sEndung
End
Function
Set
fVerz = fs.getFolder(Automationsordner &
"\" & "
06_Programm
" & "
\
" & "
SPS")
Set
colSubfolders = fVerz.Subfolders
For
Each
objSubfolder
In
colSubfolders
spsFilesuche = objSubfolder.name
Set
fVerz = fs.getFolder(Automationsordner &
"\" & "
06_Programm
" & "
\
" & "
SPS
" & "
\" & spsFilesuche)
Set
fdateien = fVerz.Files
For
Each
fDatei
In
fdateien
If
InStr(fDatei,
""
) > 0
Then
strDat = fDatei.name & vbLf
If
Dateiendung(strDat) =
"wsw"
Then
ListBox9.AddItem strDat
End
If
End
If
Next
fDatei
Set
fVerz = fs.getFolder(Automationsordner &
"\" & "
06_Programm
" & "
\
" & "
SPS")
Set
colSubfolders = fVerz.Subfolders
Next
objSubfolder