Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

BOOTable device

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi!

I wonder is it possible to create a bootable disk.

for example floppy( or hard disk) that will run my exe file when computer is booting?

PLEASE HELP!!!
 
What OS?
If DOS environment you call it with the last line in autoexec.bat if paths are correct.
Ed Fair
unixstuff@juno.com
Any advice I give is my best judgement based on my interpretation of the facts you supply. Help increase my knowledge by providing some feedback, good or bad, on any advice I have given.
 
If your program is compiled then go into notepad and enter the name of your program then save the file as autoexec.bat on the floppy disk, make sure you change the File type to Any file NOT! .txt or it wont work, then copy your program onto the floppy.

If your program is not compiled and just in .bas then copy qbasic.exe onto the disk and your program. Then create a autoexec.bat file with
qbasic [app name.bas] /r

Happy Hacking
 
Here's a way to do it without modifying any startup files... but it only works on Windows 95 & 98 :).

Place the following code in a BAS file and compile in as c:\win.exe (NOT c:\windows\win.exe). Your program will load prior to the Windows GUI.[tt]

PRINT "A) Run Windows"
PRINT "B) Exit to DOS"
DO
I$ = UCASE$(INKEY$)
SELECT CASE I$
CASE "A"
CHDIR ENVIRON$("winbootdir")
SHELL "WIN.COM"
CASE "B"
SYSTEM
END SELECT
LOOP
[/tt]
Strange that Windows doesn't mind running in a shell.... If you go to the command prompt and enter [tt]MEM /C[/tt] you'll see two running items called "WIN".

No wonder Microsoft decided to use the NT kernel in it's later offerings.


VCA.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top