mirror of
https://github.com/cmderdev/cmder.git
synced 2024-11-10 09:49:12 +08:00
save cmder_diag.* output to a file
This commit is contained in:
parent
f809af1eec
commit
fc6cf025be
10
vendor/bin/cmder_diag.ps1
vendored
10
vendor/bin/cmder_diag.ps1
vendored
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user