How can I use a BAT script to launch a "Save Text Report" ?
How can I use a BAT script to launch a "Save Text Report" ?
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
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
- 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" ?
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.
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" ?
Many thanks, that works fine.
I find the HDS GUI leaps onto the display on the command
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
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
Are there any other command line options available ?
Regards
Alan
- 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" ?
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.
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" ?
Many thanks
I am more than grateful for the /TXTREPORT option
Regards
Alan
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" ?
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
I think I need to change your entry to
Is that correct, or is there a better way ?
Regards
Alan
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
Code: Select all
C:\Program Files (x86)\Hard Disk Sentinel\HDSentinel.exe /AUTORUN /TXTREPORT
Regards
Alan
- 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" ?
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" ?
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
I will just have to launch as normal and run my BAT script a bit later.
Regards
Alan
- 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" ?
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.
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" ?
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
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