Total Commander Forum Index Total Commander
Форум поддержки пользователей Total Commander
Сайты: Все о Total Commander | Totalcmd.net | Ghisler.com | RU.TCKB
 
 RulesRules   SearchSearch   FAQFAQ   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Single Post  Topic: Как создать ярлык для URL? 
Author Message
Вахмурка



PostPosted: Sun Aug 07, 2016 14:13    Post subject: Reply with quote

Flasher wrote:
Не проще. У тебя по-прежнему имя ручками вводится
Ну, это вообще не проблема:
Code:
args Path
local Name = browserDomain

if(not Name)
   quit

local Target = "http://" ++ browserDomain

local fh = file.open(Path ++ "\" ++ Name ++ ".url", "w")

if(fh <= 0) do
   messagebox("ok error", "File not opened", "FILE plugin error #1")
   quit
endif   

fh.writeline("[InternetShortcut]")
fh.writeline("URL=" ++ Target)
fh.close

_________________
Сайт PowerPro+Total Commander
Скрипты PowerPro для Total Commander
* * *
«Не усматривайте злого умысла в том, что вполне объяснимо глупостью» (Р. Хэнлон)


Last edited by Вахмурка on Sun Aug 07, 2016 14:32; edited 1 time in total
View user's profile Send private message Send e-mail Visit poster's website


Powered by phpBB © 2001, 2005 phpBB Group