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

How, what, where and why - when using the software.
alan-0000
Posts: 77
Joined: 2012.06.04. 16:59

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

Post 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
User avatar
hdsentinel
Site Admin
Posts: 3128
Joined: 2008.07.27. 17:00
Location: Hungary
Contact:

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

Post 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.
alan-0000
Posts: 77
Joined: 2012.06.04. 16:59

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

Post 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
User avatar
hdsentinel
Site Admin
Posts: 3128
Joined: 2008.07.27. 17:00
Location: Hungary
Contact:

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

Post 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.
alan-0000
Posts: 77
Joined: 2012.06.04. 16:59

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

Post by alan-0000 »

Many thanks

I am more than grateful for the /TXTREPORT option

Regards
Alan
alan-0000
Posts: 77
Joined: 2012.06.04. 16:59

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

Post 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
User avatar
hdsentinel
Site Admin
Posts: 3128
Joined: 2008.07.27. 17:00
Location: Hungary
Contact:

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

Post by hdsentinel »

To be honest, did not yet tried, but it may work ;)
alan-0000
Posts: 77
Joined: 2012.06.04. 16:59

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

Post 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
User avatar
hdsentinel
Site Admin
Posts: 3128
Joined: 2008.07.27. 17:00
Location: Hungary
Contact:

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

Post 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.
alan-0000
Posts: 77
Joined: 2012.06.04. 16:59

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

Post 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
Post Reply