Computing.Net > Forums > Disk Operating System > Path to correct Ramdisk Letter

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Path to correct Ramdisk Letter

Reply to Message Icon

Name: J.C.
Date: September 1, 2006 at 15:07:28 Pacific
OS: Win98 S.E.
CPU/Ram: 950/CPU 950MB/Ram
Product: Generic
Comment:

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.



Sponsored Link
Ads by Google

Response Number 1
Name: DAVEINCAPS
Date: September 1, 2006 at 20:39:09 Pacific
Reply:

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.


0

Response Number 2
Name: Mechanix2Go
Date: September 2, 2006 at 04:12:12 Pacific
Reply:

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



0

Response Number 3
Name: J.C.
Date: September 2, 2006 at 08:43:24 Pacific
Reply:

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.


0

Response Number 4
Name: Mechanix2Go
Date: September 3, 2006 at 01:58:54 Pacific
Reply:

What's in setramd.bat?


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

M2



0

Response Number 5
Name: J.C.
Date: September 4, 2006 at 16:42:13 Pacific
Reply:

Mechanix2Go,
Thanks, for all the help & info., and for pointing me in the right direction.
J.C.


0

Related Posts

See More



Response Number 6
Name: Mechanix2Go
Date: September 5, 2006 at 00:06:47 Pacific
Reply:

Does that mean you got it sorted?



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

M2



0

Response Number 7
Name: J.C.
Date: September 5, 2006 at 08:13:23 Pacific
Reply:

Yes, got it all sorted and working.
J.C.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Increase Ramdisk size Freedos 1.0 download



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: Path to correct Ramdisk Letter

giving a path to a batch file www.computing.net/answers/dos/giving-a-path-to-a-batch-file/14784.html

What is the DOS command for mapping resources to a drive letter www.computing.net/answers/dos/what-is-the-dos-command-for-mapping-resources-to-a-drive-letter/1473.html

how to change drive letter's in DOS www.computing.net/answers/dos/how-to-change-drive-letters-in-dos/4729.html