home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2005 May
/
PCWorld_2005-05_cd.bin
/
software
/
vyzkuste
/
zastupci
/
zastupci.exe
/
!pcwSendHere.vbs
next >
Wrap
Text File
|
2005-03-13
|
607b
|
20 lines
Set MyShell = CreateObject("Wscript.Shell")
Set MyFiles = CreateObject("Scripting.FileSystemObject")
mySendTo = MyShell.SpecialFolders("SendTo")
n=wscript.Arguments.count -1
On error resume next
for x = 0 to n
drop=WScript.Arguments.Item(x)
set file=Myfiles.Getfile(drop)
If err > 0 then set file=MyFiles.GetFolder(drop)
Name=inputbox("Jak se mß zßstupce jmenovat?",,file.name)
If Name<>"" then
linkname=mySendTo &"\" & name & ".LNK"
Set link=MyShell.createshortcut(linkname)
link.targetpath=drop
link.save
else
myshell.run "explorer.exe /n," & mySendto
wscript.quit
end if
next