1 Post
wrote on 26.02.20 at 23:13
Link to this 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.
2459 Posts
wrote on 27.02.20 at 15:15
Link to this 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

3 Posts
wrote on 21.09.20 at 15:26
Link to this 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.