Name: Cam_test Date: July 7, 2005 at 06:41:46 Pacific Subject: Autoboot/autorun from floppy OS: window 3.1 CPU/Ram: intel 64mb
Comment:
How do i create a program/file system on a floppy that will run the .exe file from the same floppy without having to type in the execution file name at A:\>. The Auto exec on the C drive has been changed so the computer will boot into the A:\>
Cam test Could you cut and paste your autoexec.bat and config.sys from a: + c: drives, it helps when we can see what you are talking about...... One way would be to boot from a: and call the file from autoexec there.....
Rimfire, talking dos, when a pc starts up, once dos has loaded (which uses 2 or 3 normally hidden files)it then uses two further files which 'personalise' the pc:- CONFIG.SYS AUTOEXEC.BAT
I do not think the bios should be confused with the these, as its purpose is basically to boot the pc enough to load the operating system (whatever that might be).
It's the OP, not RF, who doesn't appear to have the first clue about DOS startups.
Kids, it is advisable to do some research before posting the first question that pops into your heads. Informed posters ask better (and fewer) questions, and stand a better chance of comprehending the answers.
Ya gotta do the work - we all did
Life is hard; it's harder if you're stupid. -John Wayne
As we are all struggling to comprehend the original post, I thought it might be worth trying to clear up the terminology used.
This may be a question related to a workaround to leaving a boot floppy in the drive. But then it might be a serious question poorly expressed. Until the OP returns we can do nothing but speculate.
In the meantime, you can tell me the difference between a floppy and a hard disk if you wish!
I will try and be clear. Once the pc is switched on it goes through the usual memory test, display bios, starting MS DOS. Then the PC changes directory to A:\> at this point i have to type in the .exe file name to run the program from the floppy. What I would like to know is what to create on the floppy to make the program run without typing in the .exe each time the PC is booted. I know very little about DOS this is why I posted
As the floppy is dedicated to use one particular program, you should add the location of the program to the path staement if it is not located in the root directory. This allows the program to find any files it might look for.
The name of the executable should be at the end of the autoexec.bat file but before the 'end' statement. Putting it too early will cause dos not to execute commands until you exit the program. Putting it after the 'end' statement will cause it to be ignored.
I prefer adding the path to the path statement in a single use boot because; 1) Using the full path (as in HiHo's post) does not allow the program to find its files, 2) The CD command works well unless you have cause to use it again. Once the focus has been moved, the target programme no longer has direct access to its own files.
I now recall the only time I have had to use the call statement. It was to correct a multiboot configuration where the goto statement was used (to another batch file). This orphaned the rest of the autoexec.bat file.
If you're using a bootdisk, that is what you'd expect
As has been mentioned, all that is really necessary is to have a line in a:\autoexec.bat (not AUTO EXEC) invoking the file.
It *really* doesn't get much more basic than that - running commands is what DOS does - and it's with no small amount of amazement to find this has stymied you for 4 days now (probably longer).
good luck - might try some reading
Life is hard; it's harder if you're stupid. -John Wayne
The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this site. Computing.Net and Computing.Net, LLC hereby disclaim all responsibility and liability for the content of Computing.Net and its accuracy.
PLEASE READ THE FULL DISCLAIMER AND LEGAL TERMS BY CLICKING HERE