WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Installation Licensing Setup
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Installing Programs from Floppy Diskettes

Keywords: installation setup programs two EXEs 

Problem:

A compiled WinBatch script is distributed together with customized files (macros, etc.) on two floppy diskettes.

The WinBatch program copies the files from the first diskette to the hard disk and then prompts the user to insert the second diskette. When the second diskette is inserted, Windows pops up a "Cannot Read From Drive A" error message.

This occurs repeatedly on certain PCs, but never on others. It does not seem to be brand-specific as it happens on Compaqs, Dells, ASTs and PS/2s. The second diskette *is* OK. It can be read in DOS or File Manager - just not by this WinBatch program.

Answer:

If you want to run a Windows program from a floppy: IT WANTS THAT FLOPPY TO STAY THERE. What is happening is that when you remove the floppy, Windows decides it wants another piece of the program, goes back to the A drive, and the program is GONE!

The solution is to have two programs. Compile the first EXE with the BIG exe option. Compile the second with the small EXE option. All the first one does is to copy the second one to the hard drive, and then Run() the second one. The second one can then do all the work. In this way, you avoid having to have multiple diskettes.


Article ID:   W13411
Filename:   Using WinBatch to Install Applications from Floppies.txt
File Created: 1999:04:15:16:53:50
Last Updated: 1999:04:15:16:53:50