"Open Folder" limits Log Out | Topics | Search
Moderators | Edit Profile

X-Ways Support Forum » Miscellaneous » "Open Folder" limits « Previous Next »

Author Message
Top of pagePrevious messageNext messageBottom of page Link to this message

rjohnson
Posted on Friday, Jul 9, 2004 - 20:07:   

I tried using "!00" at a particiular offset with Open Folder -> Must contain specified hex values. It was ignored and everything was opened.

Was or will "!" be an option?
Top of pagePrevious messageNext messageBottom of page Link to this message

Stefan Fleischmann (Admin)
Posted on Friday, Jul 9, 2004 - 20:22:   

Are you saying even files were opened that had zero-value bytes at all the offsets that meet the condition you specified?

! is an option to indicate "not", to be used with a single (two-digit) hex value, and works correctly, as far as I can tell.
Top of pagePrevious messageNext messageBottom of page Link to this message

rjohnson
Posted on Saturday, Jul 10, 2004 - 0:55:   

I was trying to filter out files that did not have '00' at a particular offset, most did have the '00' only a few did not (as confirmed via the same settings in a search). I applied the search settings to the 'open folder' routine and everything opened. I will test it all again to double check.
Top of pagePrevious messageNext messageBottom of page Link to this message

Stefan Fleischmann (Admin)
Posted on Saturday, Jul 10, 2004 - 1:13:   

The blinking cursor should reveal in each edit window where the !00 was found. Depending on the second modulo operator, usually more than just one offset meets the condition.
Top of pagePrevious messageNext messageBottom of page Link to this message

rjohnson
Posted on Sunday, Jul 18, 2004 - 5:16:   

> Depending on the second modulo operator

I see, sounds like I did a basic boo boo.

If I had used the default settings for example (512,0) each file would have been searched at offset 0 in blocks of 512 bytes. Because I used '!' odds are easy it found a '!00' in an offset in a subsequent block thus opening every file?

Is there a way to just search at one offset in the whole file? I have tried adjusting the x modulo to a very large number but at some point this does not seem to make a difference (1024 modulo limit?) and at an outrageously high number I, of course, get the invalid input message. Can x be set larger than the largest file in a folder to force the search to check only one offset (e.g. x=1048576, y=65536 the open folder search would be done in a folder where no file is larger than 1048576 and therefore will only look once for the search value at byte 65536 in every file, and ignore files smaller than 65536)?

Hmmm, I probably should have written a script to do this in the time it has taken me to compose this. But if it is already doable in winHex?

--------------

On a related note, how about (wish list) an 'Open Folder' search that looks for the search value at any offset in a defined beginning range using the current modulo structure as the source of the parameters? if x=0 (which I assume would be useless anyway?) then y could be the limit from the begining of the file, thus creating a range of y size starting at offset zero and then the Open Folder search routine will look for the value at any offset in that range? This would be handy for searching files for a value anywhere in the first y bytes. But not useful if applied to one object such as a hard drive, where you can just select a range and search.
Top of pagePrevious messageNext messageBottom of page Link to this message

Stefan Fleischmann (Admin)
Posted on Sunday, Jul 18, 2004 - 16:56:   

> thus opening every file?

Yes, probably.

> I have tried adjusting the x modulo to a very large number

Yes, this is a possible work-around.

> 1024 modulo limit

No. The limit should be 2^31-1.

> if x=0 (which I assume would be useless anyway?)

Correct.

> how about (wish list) an 'Open Folder'

Well, I will consider it, thanks for the idea.

Add Your Message Here
Post:
Username: Posting Information:
Only registered users may post messages here, i.e. you need to have an account.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action:
Forum operated by X-Ways Software Technology AG.