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 

[WDX Plugin Request] поиск строки в бинарном файле

 
Post new topic   Reply to topic    Total Commander Forum Index -> Плагины Total Commander printer-friendly view
View previous topic :: View next topic  
Author Message
Evgenych



Joined: 25 Jan 2005
Posts: 53

Post (Separately) Posted: Sun Feb 12, 2006 12:07    Post subject: [WDX Plugin Request] поиск строки в бинарном файле Reply with quote

В некотором двоичном файле есть строка

Code:
{"1","Бухгалтерский учет, редакция 4.х","7.70.ххх"...

или строка
Code:
{"1","Упрощенная система налогообложения, ред. 1.х","7.70.ххх"...

или строка
Code:
{"1","Торговля+Склад, редакция 9.х","7.70.ххх"...

где х - любая цифра.

Требуется чтобы в колонке показывалась эта строка.

Пробовал с помощью script.wdx - оооочень долго
Code:

Dim arrFileLines()
i = 0

Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.OpenTextFile("1cv7.md", 1)

Do Until objFile.AtEndOfStream
     Redim Preserve arrFileLines(i)
     arrFileLines(i) = objFile.ReadLine
     i = i + 1
Loop

objFile.Close

For l = Ubound(arrFileLines) to LBound(arrFileLines) Step -1
    if InStr(arrFileLines(l), "7.70.145") > 0 then Wscript.Echo arrFileLines(l)
Next
   
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> Плагины Total Commander All times are GMT + 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group