mirror of
https://github.com/cmderdev/cmder.git
synced 2025-01-10 16:29:08 +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) {
|
if (test-path $env:temp\cmder_diag_ps.log) {
|
||||||
remove-item $env:temp/cmder_diag_ps.log
|
remove-item $env:temp\cmder_diag_ps.log
|
||||||
}
|
}
|
||||||
|
|
||||||
$cmder_diag = {
|
$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 ""
|
||||||
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