Starting at Startup
Starting at Startup
(OP)
I was wondering if there was a way to make it so that my qbasic program (that I compiled) starts up when Windows loads via editing the qbasic code. If so what would I put as the code? Thanks
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS Contact USThanks. We have received your request and will respond promptly. Come Join Us!Are you a
Computer / IT professional? Join Tek-Tips Forums!
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail. Posting Guidelines |
|
Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.
Here's Why Members Love Tek-Tips Forums:
Register now while it's still free!
Already a member? Close this window and log in.
RE: Starting at Startup
RE: Starting at Startup
The file is actually autoexec.bat.
RE: Starting at Startup
RE: Starting at Startup
- one way is to edit your msdos.sys, but that means that your program will be used as a shell-program.
- one other way is to make a pif-file in windows say on your desktop. You will have to edit this file. Just for the record, I'm Dutch and I use Dutch programs but I will try to help you. If you make a pif-file from qbasic.exe or QB.exe and it is on your desktop, you click on it with your right mouse button and click in the menu on settings or something, it should be on the bottom of the menu. In the box with 'Target:' you see the path and exe file e.g. 'Target: c:\dos\qbasic.exe' this is it.
you change this to 'Target: c:\dos\qbasic.exe c:\path\programfile.bas' then you press OK and move it into your startup menu of the startmenu.
Good luck!
Balai
RE: Starting at Startup
RE: Starting at Startup
Ummm, if it's Win 3.x, you should NOT edit MSDOS.SYS nor IO.sys.
You'll need to edit the file Command.com and change it to start your "batch" file instead of autoexec.
(Note: your batch file doesn't need to have a .BAT extension either.
Then, conclude your "batch" file by simply CALLing or directly running AUTOEXEC.BAT from within it. That way, the user can change the autoexec all they want, but your batch will:
1) remain hidden [for lack of a better word] and unchanged [unless you change it], and
2) will always run prior to running autoexec.bat.
TO FuzzBall5:
There is a way (other than those mentioned above) that will work on Windows 3.x, 95, 98, 98se, and ME (I'm unsure about NT, XP or 2000 machines). But, you have not shown any interest nor responded since you initially posted this question. So, I will presume that you have found your answer elsewhere, and I'll leave it at that.
--MiggyD
RE: Starting at Startup
autoexec.bat will run compiled programs in autoexec before
windows shows the desktop. I have a birthday reminder program written in qb4.5 that pauses autoexec and informs me
of whose birthday is near -- "Send Card" each time I reboot.
(if no birthday is within 2 days, program doesnt display
anything or pause autoexec.
oh and am running win98.
RE: Starting at Startup