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
ShellRoot
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
DOSCOMMAND.COM[drive letter:]\ or
\\[server name]\[volume]\
\...C:\USER\DOCS\LETTER.TXT
A:PICTURE.JPG
\\SERVER01\USER\DOCS\LETTER.TXT
OS/2cmd.exe[drive letter:]\ or
\\[server name]\[volume]\
/ or \...C:\user\docs\Letter.txt
A: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.txt
C:\Letter.txt
\\Server01\user\docs\Letter.txt
\\?\UNC\Server01\user\docs\Letter.txt
\\?\C:\user\docs\Letter.txt
C:\user\docs\somefile.ext:alternate_stream_name
./inthisdir
../../greatgrandparent
Microsoft
Windows
Windows PowerShell[drive letter:]/ or [drive name:]\or
\\[server name]\ or

[PSSnapIn name]\[PSProvider name:][:PSDrive root]

/ or \...~C:\user\docs\Letter.txt
C:\user/docs\Letter.txt
\\Server01\user\docs\Letter.txt
cd ~\Desktop

UserDocs:/Letter.txt
Variable:PSVersionTable
Registry::HKEY_LOCAL_MACHINE\SOFTWARE\
Microsoft.PowerShell.Security\Certificate::CurrentUser\





posted @ 2020-03-24 15:07  柠檬茶多放糖  阅读(2000)  评论(0)    收藏  举报