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: Копирование имени без слеша 
Author Message
Flasher



PostPosted: Sat Apr 21, 2012 10:06    Post subject: Reply with quote

Nik2012
Code:
T = Replace(CreateObject("Scripting.FileSystemObject").OpenTextFile(WScript.Arguments(0), 1).ReadAll, "\" + chr(13), chr(13))
Text2Clip Mid(T, 1, Len(T) - 2)
заменить на
Code:
With CreateObject("Scripting.FileSystemObject")
  T = Replace(.OpenTextFile(WScript.Arguments(0), 1).ReadAll, "\" + chr(13), chr(13))
  For Each N in Split(T, vbNewLine) : NT = NT & vbNewLine & .GetBaseName(N) : Next
End With : Text2Clip Mid(NT, 3, Len(NT) - 4)
View user's profile Send private message


Powered by phpBB © 2001, 2005 phpBB Group