home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2001 May
/
PCWorld_2001-05_cd.bin
/
Software
/
Vyzkuste
/
tiptrik
/
tiptrik.exe
/
Starter.vbs
< prev
next >
Wrap
Text File
|
2001-03-04
|
1KB
|
43 lines
Set myShell = Wscript.CreateObject("Wscript.Shell")
Set myFiles = WScript.CreateObject ("Scripting.FileSystemObject")
set w = myShell.Environment("PROCESS")
liste=w("WINDIR") + "\proglist.lst"
if myFiles.FileExists(liste) then
SET dat=MyFiles.Getfile(liste)
datum=dat.datelastmodified
If datediff("d", datum, now) > 15 Then
myShell.Run ("command.com /c dir /l /s /a /-p /b c:\*.exe > %windir%\proglist.lst"),0,true
End if
else
myShell.Run ("command.com /c dir /l /s /a /-p /b c:\*.exe > %windir%\proglist.lst"),0,true
end if
suche=lcase(inputbox("Jak² program chcete spustit?"))
suche=ltrim(suche)
suche=rtrim(suche)
Set datei = myFiles.OpenTextFile(liste)
Do until datei.AtEndOfStream
zeile=datei.readline
if instr(zeile,suche) then
zeile = replace(zeile, chr(132),chr(228))
zeile = replace(zeile, chr(148),chr(246))
zeile = replace(zeile, chr(129),chr(252))
zeile = replace(zeile, chr(142),chr(196))
zeile = replace(zeile, chr(153),chr(214))
zeile = replace(zeile, chr(154),chr(220))
zeile = replace(zeile, chr(225),chr(223))
q=MyShell.Popup(ucase(zeile) & " spustit", , "SpuÜt∞nφ programu", 3)
if q = 2 then wscript.quit
If q = 6 then
n=myshell.run(chr(34) & zeile & chr(34))
wscript.quit
End if
end if
Loop