tag:blogger.com,1999:blog-6766454548139744498.post1669653657266550390..comments2024-03-27T21:45:25.370+11:00Comments on My Teams Lab: Power Syslog ServerJames Cussenhttp://www.blogger.com/profile/02300753917760796122noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-6766454548139744498.post-76402649379447140162017-03-06T23:53:39.164+11:002017-03-06T23:53:39.164+11:00Thanks for the feedback Mickael. I have updated th...Thanks for the feedback Mickael. I have updated the tool and fixed this issue in the new release. Enjoy!James Cussenhttps://www.blogger.com/profile/02300753917760796122noreply@blogger.comtag:blogger.com,1999:blog-6766454548139744498.post-88856819426909049372017-03-03T02:02:07.317+11:002017-03-03T02:02:07.317+11:00Hi,
Just wanted to say that found myself browsing...Hi,<br /><br />Just wanted to say that found myself browsing your website again, and ended up on this little tool, quite handy for the reasons you described.<br /><br />There is just a small issue that I found with it, if your output file path contains a dot, the split to add the FileNumber (in case rolling is activated) is done on the first dot, and not at the end of path.<br /><br />I think a right way to do it would be something like this:<br /><br />$path = "C:\test\folder.abcd\output.txt"<br />$ParentFolder = Split-Path $path -Parent<br />$FileName = Split-Path $path -Leaf<br />$NewFileName = $FileName -replace '(.*)(?:\..*)',"`$1$FileNumber.txt"<br />$FullFile = Join-Path -Path $ParentFolder -ChildPath $FileNameBREST Mickaelhttps://www.blogger.com/profile/18231599012699375802noreply@blogger.com