Automation via command line

Started by Fredrik

Fredrik

Automation via command line   19 June 2024, 08:40

I want to try with my own program that automates jpegtran, a command line utility that can optimise jpeg images without any quality loss whatsoever. It creates an output file which now should go to the R disk. My program simply reads this file and overwrites the input file.

So here's my question. I wonder what programs can be automated using the command line or COM. Some of your products could benefit from this both for setting and getting things. At least one works from the command line but maybe it gives too much such that you have to parse the output.
SoftPerfect Support forum - Andrew avatar image

Re: Automation via command line   19 June 2024, 19:10

Some of our products support a command-line interface or have a command-line version.

In particular, for the RAM Disk app, simply launch ramdiskc.exe from the application folder:

SoftPerfect support forum

Re: Automation via command line   20 June 2024, 04:48

Thank you. I just bought a license and my computer is now booting so I haven't had time to install it yet. I think it would be nice if you could get some of the readings as well. Not sure, maybe you should ask your users if this would be something they want.
Sergey

Re: Automation via command line   19 May 2025, 23:21

Hello.

I want to automate the process of turning on the computer via CLI, to launch programs using RAMdisk only after the disk mount has reached 100%. Since the disk image takes up 300 GB, this process is long and setting a timer to launch the application is a bad option.

Question: If I start mounting the disk not in automatic mode (autostart), but through CLI, is there a response about the successful completion of the operation?
SoftPerfect Support forum - Andrew avatar image

Re: Automation via command line   20 May 2025, 09:07

As far as I recall, with large disk images there's a possibility that the command may complete before the disk is fully accessible. If you're using a batch file, here's an example script you can use to wait until the drive becomes available. The idea is to execute this batch file at startup - it will wait for the specified drive letter to become accessible, and only then proceed to launch any dependent applications.
@ECHO OFF
SET WaitTimeMinutes=60

:CHECK

TIMEOUT 60
SET /A WaitTimeMinutes-=1
IF %WaitTimeMinutes%==0 GOTO NOTFOUND
IF NOT EXIST R:\ GOTO CHECK

:FOUND
ECHO Drive was found
NET START SERVER
EXIT

:NOTFOUND
ECHO Drive was not found in time
Sergey

Re: Automation via command line   20 May 2025, 16:35

Thank you.

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: