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
All Forums
► RAM Disk & RAM File System
► Current topic
Automation via command line
|
Fredrik
Automation via command line 19 June 2024, 08:40 |
|
|
Re: Automation via command line 19 June 2024, 19:10 |
Admin Registered: 20 years ago Posts: 2 074 |
|
Re: Automation via command line 20 June 2024, 04:48 |
Registered: 2 years ago Posts: 4 |
|
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?
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?
|
|
Re: Automation via command line 20 May 2025, 09:07 |
Admin Registered: 20 years ago Posts: 2 074 |
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 |