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 

Как найти файлы, в которых 1-й символ - 16-ный x00?

 
Post new topic   Reply to topic    Total Commander Forum Index -> Общие вопросы printer-friendly view
View previous topic :: View next topic  
Author Message
Evgenych



Joined: 25 Jan 2005
Posts: 53

Post (Separately) Posted: Wed Jan 11, 2006 00:03    Post subject: Как найти файлы, в которых 1-й символ - 16-ный x00? Reply with quote

Сабж.
Back to top
View user's profile Send private message
Вахмурка



Joined: 27 Dec 2004
Posts: 2586
Location: Большая деревня Москва

Post (Separately) Posted: Wed Jan 11, 2006 00:27    Post subject: Reply with quote

Скриптом - легко
_________________
Сайт PowerPro+Total Commander
Скрипты PowerPro для Total Commander
* * *
«Не усматривайте злого умысла в том, что вполне объяснимо глупостью» (Р. Хэнлон)
Back to top
View user's profile Send private message
Batya



Joined: 15 Dec 2004
Posts: 2227
Location: Москва, Россия

Post (Separately) Posted: Wed Jan 11, 2006 11:27    Post subject: Reply with quote

Гмм...
А разве поиск с галками "С текстом" и "HEX-код" это не то, что нужно?
Back to top
View user's profile Send private message
CaptainFlint



Joined: 14 Dec 2004
Posts: 6193
Location: Москва

Post (Separately) Posted: Wed Jan 11, 2006 13:37    Post subject: Reply with quote

Batya
Quote:
Как найти файлы, в которых 1-й символ - 16-ный x00?
Back to top
View user's profile Send private message
Batya



Joined: 15 Dec 2004
Posts: 2227
Location: Москва, Россия

Post (Separately) Posted: Wed Jan 11, 2006 16:16    Post subject: Reply with quote

Smile
Как всегда, в спешке не понял.

В принципе можно искать через wdx-плагины. Проще всего использовать ScriptContent.
Я правда не очень хорошо разбираюсь в 16-тиричных потрохах файлов. Возможно это поможет ...
script.ini:
Code:
[Script]
Section=First Hex Letter

[First Hex Letter]
Script=FirstHexLet.vbs
LongName=1
ParseDirs=0

FirstHexLet.vbs:
Code:
Dim FSO, TextFile, FileObj, FirstLetter
Set FSO = CreateObject("Scripting.FileSystemObject")
Set FileObj = FSO.GetFile(FileName)
if FileObj.Size > 0 then
  Set TextFile = FSO.OpenTextFile(FileName, 1)
  FirstLetter = TextFile.Read(1)
  TextFile.Close
  content = Hex(Asc(FirstLetter))
  Set TextFile = Nothing
end if
Set FSO = Nothing
Set FileObj = Nothing

При поиске из TC переходим на закладку "Плагины", ставим "Поиск с плагинами", выбираем:
Плагин = script,
Свойство = Result,
Операция = "равно",
Значение = 00.

Только у себя я ничего не нашел Smile))
Что это за файлы такие?
Back to top
View user's profile Send private message
Evgenych



Joined: 25 Jan 2005
Posts: 53

Post (Separately) Posted: Wed Jan 11, 2006 20:09    Post subject: Reply with quote

Quote:

Что это за файлы такие?

испорченные Smile

Все сработало!
только Значение = 0
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> Общие вопросы 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