I tested your output path 'C:\' and scenproc throws an exception error. Make a directory with any name you choose, for example 'TOC_output', then change your export line to:
ExportTOC|C:\TOC_output|SLC
Do not use a '\' at the end of the full path name.
- Rich
ps: Don't try to just dump your toc into your C: root directory using just 'C:' as the root. I did just to test. The script ran to completion. It said it wrote the file. But' it's not in the root directory. Either it really did not write the file, or I have a test toc, who knows where, on the C: drive. LOL
I´ve got it
I did the same Toc_output and it worked thank you very much.