Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I am using an edited Win98 Boot Disk. I have it set to copy my extra files to Ramdisk F:\.
It works fine when a computer has 3 partations {or 2 hard drives--3 total partations], but it will not work correct, when a computer has a single hard drive with one partation, when that is the case, the Ramdrive installs with another drive letter and will not copy my files to it becauce of the drive letter change.
Is there a command that will allow my files to be copied to the Ramdrive no matter what the drive letter may be?
Thanks,
J.C.

The ramdrive sets up at the next available drive letter. Since the single drive had one partition the ramdrive probably set up at D:
The ramdrive letter can be expressed as a variable
%RAMD%:\. To copy a file to it something like:copy filename %RAMD%:\ > NUL
should work.
Also, on a 98 bootdisk there's a findramd command. Here's
http://www.robvanderwoude.com/index.html
a batch file that will return the ramdrive letter.

for %%L in (d e f g h i) do if exist %%L:nul set ramd=%%L:
=====================================
If at first you don't succeed, you're about average.M2

DAVEINCAPS and Mechanix2Go,
Thanks,The example below worked:
.........part of the text of Autoexec.bat from Win98 Boot Floppy .....................call setramd.bat %LglDrv%
set temp=c:\
set tmp=c:\
path=%RAMD%:\;a:\;%CDROM%:\
copy command.com %RAMD%:\ > NUL
set comspec=%RAMD%:\command.com
copy extract.exe %RAMD%:\ > NUL
copy A:\Jc.zip %RAMD%:\ > NUL
A:\PKUNZJR.COM %RAMD%:\Jc.zip %RAMD%:\ > NUL
............................................................................................................
Mechanix2Go,
I do not understand where to place the commands you posted. Using the example above, will you show me where to place your commands?
Thanks,
J.C.

What's in setramd.bat?
=====================================
If at first you don't succeed, you're about average.M2

Does that mean you got it sorted?
=====================================
If at first you don't succeed, you're about average.M2

![]() |
Increase Ramdisk size
|
Freedos 1.0 download
|

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