Starting at Startup Starting at Startup FuzzBall5 (Programmer) (OP) 5 Feb 03 15:42 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 RE: Starting at Startup qbasicking (Programmer) 5 Feb 03 16:05 you would have to write to autoexec.dat using SHELL, it would be easier to do it in the DOS environment RE: Starting at Startup quebasic2 (Programmer) 5 Feb 03 17:37 quote: you would have to write to autoexec.dat using SHELL, it would be easier to do it in the DOS environment The file is actually autoexec.bat. RE: Starting at Startup qbasicking (Programmer) 6 Feb 03 16:14 my mistake - it is a batch file, not data. Oops RE: Starting at Startup Balai (Programmer) 26 Feb 03 04:27 There are others way to do it:- 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 quebasic2 (Programmer) 12 Mar 03 17:41 Make sure to make a backup before you mess with system files!!!! RE: Starting at Startup MiggyD (Programmer) 13 Mar 03 01:58 TO Balai: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 Buff1 (Programmer) 20 Mar 03 14:35 >Quebasic2 "In windows 98 and up, you can not use the autoexec.bat file to load progs when windows starts. It will not load it."autoexec.bat will run compiled programs in autoexec beforewindows shows the desktop. I have a birthday reminder program written in qb4.5 that pauses autoexec and informs meof whose birthday is near -- "Send Card" each time I reboot.(if no birthday is within 2 days, program doesnt displayanything or pause autoexec.oh and am running win98. RE: Starting at Startup quebasic2 (Programmer) 22 Mar 03 10:45 Thanks for the tip buff1.