Computing.Net > Forums > Disk Operating System > Autoboot/autorun from floppy

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Autoboot/autorun from floppy

Reply to Message Icon

Name: Cam_test
Date: July 7, 2005 at 06:41:46 Pacific
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:\>



Sponsored Link
Ads by Google

Response Number 1
Name: hiho
Date: July 7, 2005 at 07:46:46 Pacific
Reply:

Could you not point to the A:\*.EXE file in AUTOEXEC.BAT..............


0

Response Number 2
Name: jboy
Date: July 7, 2005 at 08:05:57 Pacific
Reply:

"The Auto exec on the C drive has been changed so the computer will boot into the A:\>"

That... makes no sense.

Life is hard; it's harder if you're stupid. -John Wayne


0

Response Number 3
Name: hiho
Date: July 7, 2005 at 09:44:17 Pacific
Reply:

I surmised he put an entry in AUTOEXEC so he arrived at an A:>_ prompt....who knows maybe we will be enlightened?


0

Response Number 4
Name: LinuxOS2
Date: July 7, 2005 at 12:06:51 Pacific
Reply:

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.....

Keep the old stuff running


0

Response Number 5
Name: jboy
Date: July 7, 2005 at 12:23:15 Pacific
Reply:

"maybe we will be enlightened?"

Colour me 'doubtful'

Life is hard; it's harder if you're stupid. -John Wayne


0

Related Posts

See More



Response Number 6
Name: Mike Newcomb
Date: July 8, 2005 at 12:03:32 Pacific
Reply:

LinuxOS2's advice is good.

This is what I was going to suggest.

Good Luck - Keep us posted.


0

Response Number 7
Name: Rimfire
Date: July 9, 2005 at 22:24:43 Pacific
Reply:

Is the "The Auto exec on the C drive" anything like the startup sequence in bios?


0

Response Number 8
Name: Mike Newcomb
Date: July 10, 2005 at 02:36:21 Pacific
Reply:

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).

Good Luck - Keep us posted.


0

Response Number 9
Name: Mechanix2Go
Date: July 10, 2005 at 02:52:44 Pacific
Reply:

Hi Mike,

Yep.

As long as we're at it. [we're at it again]

io.sys & msdos.sys are usually hidden. And command.com is usually read-only [+r].

M2


If at first you don't succeed, you're about average.


0

Response Number 10
Name: Mike Newcomb
Date: July 10, 2005 at 08:37:53 Pacific
Reply:

Hi M2
I was trying to keep it simple and provide an overview as it seemed to me it the new question from a different poster changed the thread.

Hope I got it right. Regards - Mike

Good Luck - Keep us posted


0

Response Number 11
Name: jboy
Date: July 10, 2005 at 10:16:22 Pacific
Reply:

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


0

Response Number 12
Name: Rimfire
Date: July 10, 2005 at 15:06:09 Pacific
Reply:

Thanks Mike for sharing that wisdom!

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!


0

Response Number 13
Name: Cam_test
Date: July 11, 2005 at 02:00:45 Pacific
Reply:

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


0

Response Number 14
Name: hiho
Date: July 11, 2005 at 02:11:56 Pacific
Reply:

Point to the A:\*.EXE file in AUTOEXEC.BAT:

http://www.computerhope.com/ac.htm

lets surmise the software is "milling.exe", if your AUTOEXEC.BAT looked like this, yours will not but this is an example:

@echo off
SET BLASTER=A220 I5 D1
SET PATH=C:\DOS;C:\
LH MSCDEX.exe /D:123
LH C:\CTMOUSE\CTMOUSE.exe
A:

...then to run the "milling.exe"

@echo off
SET BLASTER=A220 I5 D1
SET PATH=C:\DOS;C:\
LH MSCDEX.exe /D:123
LH C:\CTMOUSE\CTMOUSE.exe
A:\cnc\milling.exe

...this would therefore launch the "milling.exe execution file, DOS does not care wether or not it is upper or lower case........


0

Response Number 15
Name: Rimfire
Date: July 11, 2005 at 02:45:33 Pacific
Reply:

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.


0

Response Number 16
Name: Mechanix2Go
Date: July 11, 2005 at 02:49:06 Pacific
Reply:

Hi Rimfire,

"end" statement in DOS?

M2


If at first you don't succeed, you're about average.


0

Response Number 17
Name: Rimfire
Date: July 11, 2005 at 03:02:14 Pacific
Reply:

Hi M2,

Its been a while since I've had to write / edit a dos batch file. I believe that the end statement is optional and as such rarely used.

Damn, I really have forgotten. After a call statement is used, do we use the end or return?


0

Response Number 18
Name: Mechanix2Go
Date: July 11, 2005 at 03:21:10 Pacific
Reply:

Hi Rimfire,

IIRR [I often don't] I have not used "end" or "return" in DOS.

It used to be common practice to:

goto end
...
...
:end

But that's simply a convention. It could just as well be:

goto blatz
...
...
:blatz

In NT, there's a "built-in" EOF, which allows for a "hasty exit" and the EOF at the end of the BAT need not be declared. But that's NT, not DOS.

BTW [we're at it again] I make it a practice to code:

::==
@echo off > quit.bat
...
...
::===

It creates a zero length, do nothing, quit.bat. Typical use:

if not exist %1 quit

===
As to OP's issue, it may suffice to have the last line:

x:\somedir\some.exe

But some good 'ol DOS progs would not run unless you are in the dir. [They couldn'y find their overlays / INIs etc]

Racking my brain here. Maybe dBase II was one of them.

In those cases:

c:
cd \somedir
some.exe

M2


If at first you don't succeed, you're about average.


0

Response Number 19
Name: Rimfire
Date: July 11, 2005 at 04:06:22 Pacific
Reply:

We digress!

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.


0

Response Number 20
Name: hiho
Date: July 11, 2005 at 04:09:10 Pacific
Reply:

Yes M2GO

I have have occasion to use the following ie:

CD C:\CNC
milling.exe

end statement? was that not for the old Spectrum BASIC?? LoL!!


0

Response Number 21
Name: Mechanix2Go
Date: July 11, 2005 at 04:30:08 Pacific
Reply:

I think END is used in QBasic.

Interestingly, a recent thread in 'programming' indicates that END in VB [6?] causes crashes.

M2


If at first you don't succeed, you're about average.


0

Response Number 22
Name: jboy
Date: July 11, 2005 at 08:34:04 Pacific
Reply:

"I know very little about DOS"

Ok - that much was evident

"Then the PC changes directory to A:\>"

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


0

Response Number 23
Name: hiho
Date: July 11, 2005 at 08:45:34 Pacific
Reply:

Try reading this and throw out any pre-conceptions before hand:

http://www.dostutor.pwp.blueyonder.co.uk/


0

Sponsored Link
Ads by Google
Reply to Message Icon

Why was my post deleted? Conventional memory help



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Autoboot/autorun from floppy

running dos f-prot antivirus from floppy www.computing.net/answers/dos/running-dos-fprot-antivirus-from-floppy/11273.html

PKZIP 2.5 from floppy memory error www.computing.net/answers/dos/pkzip-25-from-floppy-memory-error/5409.html

Still a small problem with booting from floppy www.computing.net/answers/dos/still-a-small-problem-with-booting-from-floppy/3746.html