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

Started by Gary

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.
SoftPerfect Support forum - Ann avatar image
Ann

Re: No-GUI batch script for importing config and mounting RAM disk   18 June 2024, 13:14

Trying adding /hide, i.e.:
c:\Progra~1\softpe~1\ramdisk.exe /hide /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.

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

SoftPerfect support forum
SoftPerfect Support forum - Ann avatar image
Ann

Re: No-GUI batch script for importing config and mounting RAM disk   18 June 2024, 13:44

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.

Reply to this topic

Sometimes you can find a solution faster if you try the forum search, have a look at the knowledge base, or check the software user manual to see if your question has already been answered.

Our forum rules are simple:

  • Be polite.
  • Do not spam.
  • Write in English. If possible, check your spelling and grammar.

Author:

Email:

Subject

A brief and informative title for your message, approximately 4–8 words:

     

Spam prevention: please enter the following code in the input field below.

       **  ********  **    **  ********  ******** 
       **  **         **  **   **        **       
       **  **          ****    **        **       
       **  ******       **     ******    ******   
 **    **  **           **     **        **       
 **    **  **           **     **        **       
  ******   ********     **     ********  ******** 

Message: