save cmder_diag.* output to a file

This commit is contained in:
Dax T. Games 2021-09-17 12:28:49 -04:00
parent f809af1eec
commit fc6cf025be

View File

@ -1,5 +1,5 @@
if (test-path $env:temp/cmder_diag_ps.log) {
remove-item $env:temp/cmder_diag_ps.log
if (test-path $env:temp\cmder_diag_ps.log) {
remove-item $env:temp\cmder_diag_ps.log
}
$cmder_diag = {
@ -56,9 +56,9 @@ get-childitem -s "$env:CMDER_ROOT/config" |ft LastWriteTime,mode,length,FullName
"------------------------------------"
}
& $cmder_diag | out-file -filePath $env:temp/cmder_diag_ps.log
& $cmder_diag | out-file -filePath $env:temp\cmder_diag_ps.log
get-content "$env:temp/cmder_diag_ps.log"
get-content "$env:temp\cmder_diag_ps.log"
write-host ""
write-host Above output was saved in "$env:temp/cmder_diag_ps.log"
write-host Above output was saved in "$env:temp\cmder_diag_ps.log"