 |
(Pages: 1 2 ) |
 |
siddhs Level: Professor
 Registered: 02-03-2003 Posts: 92
|
How can i know the header of a file
hiyaa....
guys can pleaseeeeeeeee anyone help me ??
How can i know the Header of any files ??
Can i store some Strings in those Headers ?? If yes ...How ??
Pleaseeeeeeeeeeeeeeeee helpp meeeeee......
|
|
05-03-2003 at 06:29 PM |
|
|
JLRodgers Level: Moderator
 Registered: 04-04-2002 Posts: 1658
|
Re: How can i know the header of a file
What do you mean by the header of a file?
____________________________
Everywhere's Local (classifieds, job postings, & more for everycity in the world - user entered)
|
|
11-03-2003 at 09:44 PM |
|
|
JLRodgers Level: Moderator
 Registered: 04-04-2002 Posts: 1658
|
Re: How can i know the header of a file
Still confused.
Do you mean you want to retrieve the extension of a file, the filename, info contained in the file, what type of file it is (ie: associations in the registry), or change a filename?
Except for changing filenames, putting strings into any of these would, potentially, corrupt the file, or make the file unopenable.
Reason being is a text file could be empty with only filename.txt existing so there aren't headers in them, just filenames/extensions. Modifying anything in an exe could easilly make the program not work.
____________________________
Everywhere's Local (classifieds, job postings, & more for everycity in the world - user entered)
|
|
13-03-2003 at 07:07 PM |
|
|
JLRodgers Level: Moderator
 Registered: 04-04-2002 Posts: 1658
|
Re: How can i know the header of a file
I really don't know exactly how they password protect files. But I believe it encrypts the file, using the password in part of the encryption so it can't be unencrypted without it (at least not properly). Then it has a mini program that unencrypts the file that's added to the file (basically has the file inside another) and saved as the original file.
Can't be sure, but a utility that I saw years ago almost tripled the file size when it password protected it, and when you double-clicked it, it prompted for a password, so it seems logical.
As far as how to do it, I have no idea.
____________________________
Everywhere's Local (classifieds, job postings, & more for everycity in the world - user entered)
|
|
15-03-2003 at 06:56 PM |
|
|
JLRodgers Level: Moderator
 Registered: 04-04-2002 Posts: 1658
|
Re: How can i know the header of a file
Just as a quick cautionary thing, you may want to be wary of changing EXE, DLL open with program. If the program's not found, crashes, or has errors, the system will go down, and may not start back up. Not sure if you were planning on it, but just in case (actual privacy lock down tools that do this can mess up computers, and they've been done by large companies).
____________________________
Everywhere's Local (classifieds, job postings, & more for everycity in the world - user entered)
|
|
19-03-2003 at 06:44 PM |
|
|
JLRodgers Level: Moderator
 Registered: 04-04-2002 Posts: 1658
|
Re: How can i know the header of a file
Thought there was... But I just looked and didn't see it listed, of course last time I checked was quite a while ago. There was something listed somewhere that said how to write a VB program to track all programs that were run. I was thinking one example told how to re-direct it.
____________________________
Everywhere's Local (classifieds, job postings, & more for everycity in the world - user entered)
|
|
19-03-2003 at 09:20 PM |
|
|
JLRodgers Level: Moderator
 Registered: 04-04-2002 Posts: 1658
|
Re: How can i know the header of a file
Well, if you renamed the extension, it wouldn't appear to be readable, but if you keep the .txt in the name, it's pretty obvious as to what type of file it is or was.
It doesn't take much to open the file in notepad even if the extension's different.
____________________________
Everywhere's Local (classifieds, job postings, & more for everycity in the world - user entered)
|
|
21-03-2003 at 07:15 AM |
|
|
JLRodgers Level: Moderator
 Registered: 04-04-2002 Posts: 1658
|
Re: How can i know the header of a file
Just so others know too, there is a search function in the API viewer from AllApi.net, numerous fields can be searched, so it's pretty easy to find stuff (normally).
____________________________
Everywhere's Local (classifieds, job postings, & more for everycity in the world - user entered)
|
|
21-03-2003 at 08:02 PM |
|
|
JLRodgers Level: Moderator
 Registered: 04-04-2002 Posts: 1658
|
Re: How can i know the header of a file
They do the same thing, just different ways to pass the info to them. There's code on the board somewhere if you need it.
They just open the file with the program's that's associated with it (in the registry).
____________________________
Everywhere's Local (classifieds, job postings, & more for everycity in the world - user entered)
|
|
22-03-2003 at 08:30 PM |
|
|
|
|
 |
 |