Page 1 of 1

How can I use a BAT script to launch a "Save Text Report" ?

Posted: 2012.07.10. 13:20
by alan-0000
At the end of the day I launch a *.BAT script to "tidy up" before I shut down.

I would like to use this to trigger a report from HDS (which is running as an application) so that the script may select certain values and append to a log.

Regards
Alan

Re: How can I use a BAT script to launch a "Save Text Report" ?

Posted: 2012.07.10. 13:52
by hdsentinel
You can use:

HDSENTINEL.EXE /TXTREPORT

to create a HDSentinel_report_20120710.txt file to the folder of the software (note the current date appended automatically in YYYYMMDD format to make it easier to process and maintain the report(s) if you prefer to keep them).

HDSENTINEL.EXE /HTMLREPORT

is also possible, just it saves HTML format report.

Re: How can I use a BAT script to launch a "Save Text Report" ?

Posted: 2012.07.10. 17:16
by alan-0000
Many thanks, that works fine.

I find the HDS GUI leaps onto the display on the command

Code: Select all

"C:\Program Files (x86)\Hard Disk Sentinel\HDSentinel.exe" /TXTREPORT
I am quite happy to live with that effect, but is there something like a /S "Silent" switch that would avoid the display

Are there any other command line options available ?

Regards
Alan

Re: How can I use a BAT script to launch a "Save Text Report" ?

Posted: 2012.07.10. 17:59
by hdsentinel
Yes, when HDSentinel.exe started (if it's running) even with the command line parameter, it forces the software to re-detect HDD status and display the user interface. Currently there is no way to bypass this, but it may be a good idea, so it may be added to a later version.

There are some other command line options available, but they are mostly designed to diagnose hardware compatibility issues (if there are any).
For example,

HDSentinel.exe /REPORT /ENABLETEST /RAID

creates raw (developer) report, testmode.txt and raid.txt file, dumping "raw" response from the hard disk controllers/drivers/OS.
These are used only for testing.

Re: How can I use a BAT script to launch a "Save Text Report" ?

Posted: 2012.07.10. 20:01
by alan-0000
Many thanks

I am more than grateful for the /TXTREPORT option

Regards
Alan

Re: How can I use a BAT script to launch a "Save Text Report" ?

Posted: 2012.07.18. 09:58
by alan-0000
I would like HDS to automatically create upon start up a /TXTREPORT

I am using 64 bit Windows 7 Ultimate.
In the Task Scheduler Library I find HDS is started by the entry

Code: Select all

C:\Program Files (x86)\Hard Disk Sentinel\HDSentinel.exe /AUTORUN
I think I need to change your entry to

Code: Select all

C:\Program Files (x86)\Hard Disk Sentinel\HDSentinel.exe /AUTORUN /TXTREPORT
Is that correct, or is there a better way ?

Regards
Alan

Re: How can I use a BAT script to launch a "Save Text Report" ?

Posted: 2012.07.18. 14:26
by hdsentinel
To be honest, did not yet tried, but it may work ;)

Re: How can I use a BAT script to launch a "Save Text Report" ?

Posted: 2012.07.18. 17:50
by alan-0000
Unfortunately using two arguments prevents a successful launch.

I will just have to launch as normal and run my BAT script a bit later.

Regards
Alan

Re: How can I use a BAT script to launch a "Save Text Report" ?

Posted: 2012.07.19. 08:03
by hdsentinel
You may configure HDSentinel Pro to launch the project later, after its startup:

on Configuration -> Operations, you can define a project to be launched (your BAT file) and schedule it to be started after some time (for example after 5 minutes) after startup of the software. Then it will be automatically started.

Re: How can I use a BAT script to launch a "Save Text Report" ?

Posted: 2012.07.19. 12:49
by alan-0000
Many thanks, that is working nicely.
I actually set it for a delay "After Load" of 00:00, and my script was launched perhaps 10 seconds after HDS had presented icons in the notification tray.

Regards
Alan