I’ve never used Powershell until now.
I downloaded a script from Sergei Dorogin’s technical blog .It’s supposed to create a WORD document from a .txt file. But the output is a single blank page. I see that the forum new topic process inserted a link that points to the script, so I guess I don’t need to copy it into this Topic. I made no changes to the code
Can someone point me to the place in the code that might explain wy the output is blank? I prefer to troubleshoot it myself rather than have someone do it for me.
If you have a question about a particular script and you know the author - why not asking the author? If there’s an issue with his code he will probably be thankful if you notice him about.
Here’s the script. As I said previously I don’t want someone to just hand me the solution without me doing any work on my part. I just want a clue as to where to look within the script. Is there a way to step through the execution one line at a time?
First thing I’d do is simplify the file path magic work. If you know the path, remove all that and just pass the exact path in. Same with all the include/exclude logic, if you handle that prior to calling the function, and only call the function with files you really want to convert, you remove tons of unnecessary complexity.