making a new file extension
-
hey, i am trying to make a new file extension, i have looked on the internet and cant find and thing. this is what I'm trying to do. when the user clicks on the .hnh it executes the exe in side of it, along side of the exe is a text file and i am aiming for the exe to write records in the text file inside of the .hnh, if someone could help or point me in the right direction that would be great. also i was not sure where to post this if there is a better place please tell me, thanks
If at first you don't succeed Redefine success J.Hardy
-
hey, i am trying to make a new file extension, i have looked on the internet and cant find and thing. this is what I'm trying to do. when the user clicks on the .hnh it executes the exe in side of it, along side of the exe is a text file and i am aiming for the exe to write records in the text file inside of the .hnh, if someone could help or point me in the right direction that would be great. also i was not sure where to post this if there is a better place please tell me, thanks
If at first you don't succeed Redefine success J.Hardy
Huh? You want to nest a file inside a file? Why would you want to hide an exe inside another file type, unless you want a user to execute it without knowing it's executable? I can't imagine any reason for this that isn't a crime. Why not store the executable as an exe file, and its data file as txt? You wouldn't be thinking of writing something malicious would you? If so, this would be a really good time to go somewhere else. If not, please clarify.
"A Journey of a Thousand Rest Stops Begins with a Single Movement"
-
Huh? You want to nest a file inside a file? Why would you want to hide an exe inside another file type, unless you want a user to execute it without knowing it's executable? I can't imagine any reason for this that isn't a crime. Why not store the executable as an exe file, and its data file as txt? You wouldn't be thinking of writing something malicious would you? If so, this would be a really good time to go somewhere else. If not, please clarify.
"A Journey of a Thousand Rest Stops Begins with a Single Movement"
the point of it was so the people who use the .hnh dose not have to copy 7 files, just 1 .hnh if that make more sence
If at first you don't succeed Redefine success J.Hardy
modified on Tuesday, April 21, 2009 10:05 PM
-
the point of it was so the people who use the .hnh dose not have to copy 7 files, just 1 .hnh if that make more sence
If at first you don't succeed Redefine success J.Hardy
modified on Tuesday, April 21, 2009 10:05 PM
-
Can you package the files together in an installer, and have the user install the program? That way all the need to copy is setup.exe, run it once, and then access the program from the start menu or application menu, or desktop shortcut, or whatever. Dybs
i would like to avoid the installer if possible, i would like them to be able to copy the .hnh file from computer to computer without installing it
If at first you don't succeed Redefine success J.Hardy
-
i would like to avoid the installer if possible, i would like them to be able to copy the .hnh file from computer to computer without installing it
If at first you don't succeed Redefine success J.Hardy
I don't think you can do that, as far as I recall is only .EXE and .COM files can be executable in Windows/DOS (going all the way back to the beginning of time). I have seen something similar done that is the opposite of what you're describing. Where-in you have an .exe "program" that is labeled as such, and it stores or has extra data written to it after then end of the executable code. So basically the file structure on the drive looks something like this: "[exe header][exe executable code]||[extra data]".exe This way, the OS can run the file, as the header, entry point of program, and all executable code addresses are retained, while the data that needs to be accessed is appended to the end. It would be up to the program to track where the end of the code was for instance: Const FixedProgramLength = (an integer that represents how many bytes the exe code is) Const StartOfDataAddr = FixedProgramLength + 1 The only other way I could think of to make a .hnh file executable would be to make an axillary service that would be running prior (at startup) and somehow initiate the executable code stored within. (Similar in concept to Java .jar files, in that without the Java Runtime library installed and running the OS doesn't know that it's a program of any kind). However, I would venture that the first solution would be the easiest... And besides, as mentioned, there's no good reason that a program should have a different extension that isn't unethecal
-
I don't think you can do that, as far as I recall is only .EXE and .COM files can be executable in Windows/DOS (going all the way back to the beginning of time). I have seen something similar done that is the opposite of what you're describing. Where-in you have an .exe "program" that is labeled as such, and it stores or has extra data written to it after then end of the executable code. So basically the file structure on the drive looks something like this: "[exe header][exe executable code]||[extra data]".exe This way, the OS can run the file, as the header, entry point of program, and all executable code addresses are retained, while the data that needs to be accessed is appended to the end. It would be up to the program to track where the end of the code was for instance: Const FixedProgramLength = (an integer that represents how many bytes the exe code is) Const StartOfDataAddr = FixedProgramLength + 1 The only other way I could think of to make a .hnh file executable would be to make an axillary service that would be running prior (at startup) and somehow initiate the executable code stored within. (Similar in concept to Java .jar files, in that without the Java Runtime library installed and running the OS doesn't know that it's a program of any kind). However, I would venture that the first solution would be the easiest... And besides, as mentioned, there's no good reason that a program should have a different extension that isn't unethecal
that sounds great! could you point me to some articles on how to do that please (first solution)
If at first you don't succeed Redefine success J.Hardy