home *** CD-ROM | disk | FTP | other *** search
- dim text(4)
- Set FShell = Wscript.CreateObject("Wscript.Shell")
- Set Env = FShell.Environment
- winver= Env("WINDIR")
- Set n = WScript.CreateObject ("Scripting.FileSystemObject")
- liste = winver & "\Command\folder.lst"
- newlist = "wscript.exe " & winver & "\Command\Folderlist.vbs"
-
- if n.FileExists(liste) then
- else
- Wscript.echo "Erstelle neue Liste."
- FShell.Run (newlist),,TRUE
- end if
-
- input=ucase(inputbox("Ordner angeben: " & chr(13) & chr(13) & "Beispiel 1: poledit" & chr(13) & "Beispiel 2: off 97 mak",,,1800,1200))
- if input="" then Wscript.Quit
-
- do
- leer=instr(input," ")
- if leer > 0 then
- text(count)=ucase(left(input,leer-1))
- input=mid(input,leer + 1)
- count = count + 1
- end if
- loop until leer=0
- text(count)=ucase(input)
-
- Set dat = n.OpenTextFile (liste)
-
- Do
- zeile = dat.ReadLine
-
- for x=0 to count
- i=instr(ucase(zeile),text(x))
- if i=0 then exit for
- next
-
- if i > 0 then
- q=FShell.Popup(ucase(zeile) & " ÷ffnen?", 4, "Folder-Start: ", 3)
- if q = 6 or q = -1 then
- FShell.Run "explorer.exe /n," & chr(34) & zeile & chr(34),1
- found = found + 1
- end if
- end if
-
- loop While dat.AtEndOfStream <> True and q <> 2 and q <> 6
-
- if found = 0 then wscript.echo "Nix (mehr) zu tun..."
-
- set dd=n.Getfile (liste)
- datum=dd.datelastmodified
- if datediff("d", datum, now) > 15 then
- FShell.Run newlist
- Wscript.echo "Aktualisiere Liste..."
- end if
-