Solved

Start program before boot time

Posted on 2003-12-07
12
351 Views
Last Modified: 2010-04-15
How do you make a computer start a program  before window loads.What I am wanting to do is like how some computers display there logo ("Like a gateway computer does") before windows starts loading or right before it loads.How is this done ? A simple example would be great or just finger pointing me in the right direction so I can learn more about this.Thank you for your time.

Note, I am on windows 98 sec.  


Best Regards,
Jay
0
Comment
Question by:boooo
12 Comments
 
LVL 2

Expert Comment

by:proziath
ID: 9893301
How about putting the name of the program (minus the EXE extension) inside the autoexec.bat file and ensure that the autoexec.bat file is in the root folder (directory of the drive you are booting up from).
0
 

Author Comment

by:boooo
ID: 9893447
I tryed that but it did not work
0
 
LVL 2

Expert Comment

by:proziath
ID: 9893497
can you post the contents of the autoexec.bat that you tried so that I could look at it. Because I really believe it would work and it would be the easiest possible solution to what you are trying to do.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:boooo
ID: 9893757
What I get when I try to run it from there is ...
The program can't be run in dos mode
0
 
LVL 2

Expert Comment

by:proziath
ID: 9893839
This means that the program you are trying to run is a windows program and in that case, you will not be able to run it before windows starts. You see windows 98 starts off in DOS mode (Real mode) before switching to windows (protected mode). What does your program do, because you may be able to create it as a DOS program in which case it will run.
0
 

Author Comment

by:boooo
ID: 9894004
I was trying to simulate something like the Bio OEM logo.I was wanting to create a splash screen after the windows splash screen has pops up and closed and before the desktop loads......Any idea?Thank you for your time.
0
 
LVL 2

Expert Comment

by:proziath
ID: 9894060
The splash screen that you describe is put there by firmware (ie BIOS) and to modify anything to do with bios is normally to upgrade it so that your pc can recognise new hardware for example. If anything at all goes wrong with BIOS then you are not able to start your PC at all. I have never come across a method of modifying bios from the user end (and not the factory end)so that it can do as you require. Generally I would advise to leave it well alone.

This brings me back to using a DOS based program to display the splash screen that you wanted. From where I stand it is the only way possible, but let us see what the other guys might say about that.
0
 
LVL 4

Expert Comment

by:pankajtiwary
ID: 9894687
Hi,

As proziath said, the energy or any screen (the POST screen to be precise) is somewhere set in the BIOS of the system and I don't have any information that anybosy has tried anything from the users side. As far as the OS logo (eg windows) is concerned, it is nothing but a BMP image which is stored in the system with name as logo.sys. You can search for the file and open it in internet explorer and you will see that image. If you want to change that image, what you can do is open it in any image editor and change it the way you want. The only thing is you can change the dimension and the color depth of that file because these 2 things define the size of the file and the size for this special file is fixed.

Hope it helps.
0
 
LVL 1

Accepted Solution

by:
mattjsimps earned 50 total points
ID: 9895749
or replace the logo.sys file with the one you want eg

assuming your picture is called myimage.bmp

rename logo.sys to logo.old
rename myimage.bmp to logo.sys

place the new logo.sys in the same directory as the old one.


The same can be done with the "safe to turn of your computer" logo as well, but i cant remember the filename
0
 
LVL 3

Expert Comment

by:guynumber5764
ID: 9898136
You could put the program in the boot loader.  Look at the code for Lilo or Grub (both standard in most Linux distros).   If you don't mind GPLing your work, the easiest thing to do would be to either modify one of those or to look for the same kind of thing OSS.  

Be very careful with boot code:  If the boot loader crashes it may be very difficult to fix unless you have already planned for it.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
memory leak detection 9 101
chcp 65001 File encoding 66 300
Finding a good hash function 4 130
How to access ANSI/IEEE Std 754 or equivalent information ? 3 78
Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question