Boot the computer with a floppy disk. The contents of AUTOEXEC.BAT on the floppy are as follows:
for %%1 in (d e f g h i j k l m n o p q r s t u v w) do if exist %%1:\AUTOEXEC.BAT
%%1:
What I mean is, if AUTOEXEC.BAT exists in some partition, then switch to that partition's drive letter. For example, if AUTOEXEC.BAT exists on drive D, then after booting from the floppy it should switch to D:
But the way I wrote it above is wrong. Please help point out the mistake, thanks!
for %%1 in (d e f g h i j k l m n o p q r s t u v w) do if exist %%1:\AUTOEXEC.BAT
%%1:
What I mean is, if AUTOEXEC.BAT exists in some partition, then switch to that partition's drive letter. For example, if AUTOEXEC.BAT exists on drive D, then after booting from the floppy it should switch to D:
But the way I wrote it above is wrong. Please help point out the mistake, thanks!

