xtremee Posted June 26, 2005 Share Posted June 26, 2005 (edited) Hi everybody,I wanna to know wat is the Script use in .sys files I have also a prob this prob is When i edit *.sys (like IO.sys) when i replace the strings with the same number of it ( i.e. if i have Windows and i change it to Xtremee it is ok but When i change it to Microsoft there is an error ).Note :Windows 7no.and Xtreme 7 no. but Microsoft 9 no.Any ans will be great. Edited June 26, 2005 by xtremee Link to comment Share on other sites More sharing options...
egrath Posted June 26, 2005 Share Posted June 26, 2005 Hi,i don't know exactly what you want, but note when you are editing binary files the replaced strings must have the same size as the original (or lower).Normally when you open a Binary file in a Hexeditor and search for the String, you will notice that the String is ended by Hexcode '00'. This is because Strings normally are terminated by Zero in most programming languages. If you want to change the String "Windows" to "ABC" you have to write a '00' to the Position where the 'd' was in the original String.Was this what you wanted to know?Egon Link to comment Share on other sites More sharing options...
xtremee Posted June 27, 2005 Author Share Posted June 27, 2005 1st thank u egrath,this is one of two things i wanna to know.the 2nd one is how i can write *.sys (i.e. wat is the languge used in it ?)Any ans will be great Link to comment Share on other sites More sharing options...
egrath Posted June 27, 2005 Share Posted June 27, 2005 Hi,this depends on the Application/OS-Component that uses the *.sys File. Unter MS-DOS for example there are two widely used *.sys files:config.sys: Textfile with configuration Informationsio.sys: Part of the Operating System with Binary InformationsThere is no File content specification for *.sys Files. They are used in different situations with different content. But most of the time they are Binary Files which contains executable code (for example the *.sys files in your system32 folder on Windows)For what exactly do you need to know this information? Maybe i can tell you then more.Bye, Egon Link to comment Share on other sites More sharing options...
xtremee Posted June 27, 2005 Author Share Posted June 27, 2005 Another thanks to egrath,I wanna to edit IO.sys (i.e add some future and .....)i also wanna to know HOW i can make program work in dos with GUI?Any ans will be great Link to comment Share on other sites More sharing options...
egrath Posted June 27, 2005 Share Posted June 27, 2005 Hi,the io.sys file is a binary file created as the result of the compilation of an assembler sourcecode file. To add functionality to this file you can do the following:*) If you just want to edit some strings, edit them in an hexeditor*) If you want to add more functionality - prepare to have a lot of work you just have to learn/know the x86 assembly language. Decompile it with the tool of your choice (for example IDEA), then build in the functionality you need and compile it again.If you want to write programs with GUI in DOS you have two options:1. Access the Video memory directly. If i remember correct it's located at 0xC800 - there should be many information available on the net on how to do this.2. Get a GUI Library. For example you could use Borland's TurboVision for this.If you intend to write in assembler, probably your only choice will be (1), if you code in c, prefer (2).Bye, Egon Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now