PuTTY (KiTTY)保存log的相对路径设定
PuTTY (KiTTY)保存log的相对路径设定
我使用的是KiTTY portable便携版本,log存放路径设定为kitty_portable.exe文件所在路径的相对子目录.\logs\文件夹里。(比如kitty_portable.exe放在D:\software\kitty,那么log自动存放的相对路径即是D:\software\kitty\logs\文件夹)
这个.\folderPath用法是我在网上简单搜索无果后,想起来自定义Windows用户文件夹图标的方法中相对路径的用法尝试成功的。根据推测验证成功,哈,还是有一点成就喜悦感的。
.\logs\&Y&M&D_&T-@&H#&P_PuTTY.log

以下是维基百科对相对路径的介绍
Representations of paths by operating system and shell[edit]
来源: https://en.wikipedia.org/wiki/Path_(computing)
| Operating System | Shell | Root Directory | Directory Separator | Current Directory | Parent Directory | Home Directory | Examples |
|---|---|---|---|---|---|---|---|
| Unix-like OS (incl. macOS) | Unix shell | / | / | . | .. | ~ | /home/user/docs/Letter.txt./inthisdir../../greatgrandparent~/.rcinfo |
| DOS | COMMAND.COM | [drive letter:]\ or\\[server name]\[volume]\ | \ | . | .. | C:\USER\DOCS\LETTER.TXTA:PICTURE.JPG\\SERVER01\USER\DOCS\LETTER.TXT | |
| OS/2 | cmd.exe | [drive letter:]\ or\\[server name]\[volume]\ | / or \ | . | .. | C:\user\docs\Letter.txtA:Picture.jpg\\SERVER01\USER\docs\Letter.txt | |
| Microsoft Windows | cmd.exe | \ (relative to current working directory root)or [drive_letter]:\or \\[server]\[sharename]\or \\?\[drive_spec]:\or \\?\[server]\[sharename]\or \\?\UNC\[server]\[sharename]\or \\.\[physical_device]\ | / or \ | . | ..[3] | C:\user\docs\Letter.txt/user/docs/Letter.txtC:\Letter.txt\\Server01\user\docs\Letter.txt\\?\UNC\Server01\user\docs\Letter.txt\\?\C:\user\docs\Letter.txtC:\user\docs\somefile.ext:alternate_stream_name./inthisdir../../greatgrandparent | |
| Microsoft Windows | Windows PowerShell | [drive letter:]/ or [drive name:]\or\\[server name]\ or
| / or \ | . | .. | ~ | C:\user\docs\Letter.txtC:\user/docs\Letter.txt\\Server01\user\docs\Letter.txtcd ~\Desktop
|

浙公网安备 33010602011771号