Extract file data from Raw View via script?

Discuss and share scripts and script files...
xboxninja
Posts: 10
Joined: 12 Feb 2010 15:10
Location: New Jersey, USA

Re: Extract file data from Raw View via script?

Post by xboxninja »

SkyFrontier - as I mentioned, I'm pretty new to scripting in XYplorer so I don't think I'm the guy you want writing scripts for you!

The other responses in this thread seem to be right on and should give you at least a good start to create the script on your own.

Good luck!
- Don

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: Extract file data from Raw View via script?

Post by SkyFrontier »

Code: Select all

...came up with the following code:
Code:
//read the contents of the selected file into $a
$a = readfile(<curitem>, b);
   //just grab the first part of the file to find the headers
   $b = substr($a, 0, 500);
   //dump the hex values to a variable
   $c = hexdump($b);
gave me the wrong impression. I also play a lot with XY scripts and solved myself a few problems, but extracting exact pieces of text/replacing text inside a document is currently beyond me.

Hallgren: EcoByte software requires dotNET 3.5. But don't mind: as I said, I already have a little set to accomplish that task externally to XY.
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

j_c_hallgren
XY Blog Master
Posts: 5826
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

Re: Extract file data from Raw View via script?

Post by j_c_hallgren »

SkyFrontier wrote:Hallgren: EcoByte software requires dotNET 3.5. But don't mind: as I said, I already have a little set to accomplish that task externally to XY.
Ok...The site now has v2.2 and I have v2.0 which I still found on net at another site http://www.ablestable.com/resources/free/free-pc3.htm as http://www.ablestable.com/assets/free/pc/bkrep20.exe

I have D/L'd that copy and it compares identical to my old install and i don't believe that one required any external stuff.
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.

Post Reply