| Author |
Message |
   
Need Pass
Username: needpass
Registered: N/A
| | Posted on Saturday, Aug 23, 2008 - 22:35: | |
I want to go to the last byte of a open file using script. My problem is: given a JPEG file I want to trim all that follows the End Of Image signature 0xFFD9. Thanks, Francesco |
   
Stefan Fleischmann
Username: admin
Registered: 1-2001
| | Posted on Sunday, Aug 24, 2008 - 7:21: | |
Then search for that footer signature, and when found, select a block that spans the area from the byte after the footer signature to the last byte in the file, and then use the Remove command. |
   
Need Pass
Username: needpass
Registered: N/A
| | Posted on Sunday, Aug 24, 2008 - 14:17: | |
Thanks Stefan, but I need the script command to go to the last byte of the file! A command like "Goto End Of File" Francesco |
   
Stefan Fleischmann
Username: admin
Registered: 1-2001
| | Posted on Sunday, Aug 24, 2008 - 15:08: | |
No, you don't need such a command, you can create this functionality with the existing commands. Assign Ofs GetSize Assign Ofs (Ofs-1) Goto Ofs |
   
Need Pass
Username: needpass
Registered: N/A
| | Posted on Sunday, Aug 24, 2008 - 15:23: | |
Thanks Stefan ;) |