No-GUI batch script for importing config and mounting RAM disk

4 posts · Closed

Gary Guest
18 Jun 2024

How to import disk definitions/config and mount RAM disk without GUI pop-up screen in a batch script?

My script for importing disk definitions and mounting RAM disk:

c:\Progra~1\softpe~1\ramdisk.exe /import:"c:\temp\Ramdisk-xml" /mount: A

It is held on the pop-up GUI screen, so it cannot continue running the remaining command.

Ann SoftPerfect
18 Jun 2024

Trying adding /hide, i.e.:

c:\Progra~1\softpe~1\ramdisk.exe [b]/hide[/b] /import:"c:\temp\Ramdisk-xml" /mount: A

However if you intend to add and delete disks on the go, it is better to use the console version of the RAM Disk application. Those RAM disks will not show up in GUI and will disappear on shutdown or reboot.

Gary Guest
18 Jun 2024

Thank you for your prompt reply. Now it can hide the popup screen. But it still stays at the command prompt.

Ann SoftPerfect
18 Jun 2024

That's because the process (ramdisk.exe) is still running, so the batch file will not continue. As a workaround, you can use the start command:

start c:\Progra~1\softpe~1\ramdisk.exe /hide /import:"c:\temp\Ramdisk-xml" /mount: A

In this case the batch file execution will continue without waiting for ramdisk.exe to quit.

This topic is closed. It has had no new posts for over a year, so the software versions it talks about may be out of date. Start a new topic in RAM Disk if you have a similar question.