home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2001 May
/
PCWorld_2001-05_cd.bin
/
Software
/
Vyzkuste
/
tiptrik
/
tiptrik.exe
/
!SendHere.vbs
next >
Wrap
Text File
|
2000-08-18
|
949b
|
36 lines
Set MyShell = Wscript.CreateObject("Wscript.Shell")
Set MyFiles = CreateObject("Scripting.FileSystemObject")
win = MyFiles.GetSpecialFolder(WindowsFolder)
sendto=win & "\Sendto\"
n=wscript.Arguments.count
on error resume next
drop=WScript.Arguments.Item(0)
set file=Myfiles.Getfile(drop)
if err > 0 then set file=MyFiles.GetFolder(drop)
name=inputbox("Zadejte jmΘno zßstupce",,file.name)
if name<>"" then
linkname=sendto & name & ".lnk"
set link=myshell.createshortcut(linkname)
link.targetpath=drop
link.save
else
Set Folder = Myfiles.GetFolder(sendto)
Set AlleDateien = Folder.Files
For Each X in AlleDateien
Set file = MyFiles.GetFile(X)
liste=""
For Each Y in AlleDateien
liste=liste & chr(13) & chr(10) & y.name
Next
frage=myshell.popup(liste,,ucase(x.name) & " --- odstranit ze slo₧ky SendTo?",3)
if frage=2 then wscript.quit
if frage=6 then file.delete
Next
end if