cloneman
1 Beitrag
schrieb am 26.02.20 um 23:13 Uhr
Link zu diesem Post
Every time I restart my computer streamwriter does not auto-start properly because of some error in closing streamwriter from the last time.

There should be an option to ignore these errors without my intervention. Streamewriter does not do its tasks while this pop-up dialog asks us about an error.
 
alex
2461 Beiträge
schrieb am 27.02.20 um 15:15 Uhr
Link zu diesem Post
Run streamWriter with this command line argument: -autoloadrecovery

The message will not be displayed and data from recovery file will be used.
LG/Best regards, Alex

"Journalism is printing what someone else does not want printed. Everything else is public relations."
- George Orwell

D1734FA178BF7D5AE50CB1AD54442494
 
piezanno
3 Beiträge
schrieb am 21.09.20 um 15:26 Uhr
Link zu diesem Post
I had this same problem when stream writer opens after a reboot or power fail, I reboot my spare windows pc every night, I didn't know about the startup option to load with previous saved file, so I wrote the following vbs program to close the windows. name your file: filename.vbs and run it from a scheduler task or bat file.


Dim oShell
Set oShell = WScript.CreateObject ("WScript.Shell")

'Try to gracefully close streamwriter question window
if ( oShell.AppActivate("Question") = True) Then
oShell.SendKeys "{ENTER}"
End If

'Kill any leftover "Info" windows from streamwriter if they are open

oShell.Run "taskkill /fi ""WINDOWTITLE eq Info""",0,False


'if any leftover "Question" windows from streamwriter kill them
oShell.Run "taskkill /fi ""WINDOWTITLE eq Question""",0,False

if running out of task scheduler make sure to run it at the same security level or higher as the task that starts stream writer.