html {
overflow-y: scroll /* aa */
}
body {
margin: 0;
padding: 0
}
a {
color: #333
}
#container {
display: grid;
grid-template-columns: 260px auto;
grid-template-rows: 54px auto 32px;
grid-template-areas: ' header header ' ' navi content ' ' footer footer '
}
指定したパスの最後のコンポーネントのファイル名またはフォルダー名を返します。
- 構文
- FileSystemObject.GetFileName( pathspec )
- 引数
- pathspec
- ファイルの絶対パスまたは相対パス。
- 戻値
プログラム実行例
パス名からファイル名・拡張子・ベース名・親フォルダを取得
DIM FSO = CREATEOLEOBJ("Scripting.FileSystemObject")
DIM path = "D:\Desktop\sample.txt"
WITH FSO
PRINT "ファイル名<#TAB>" + .GetFileName(path)
PRINT "ベース名<#TAB>" + .GetBaseName(path)
PRINT "拡張子<#TAB><#TAB>" + .GetExtensionName(path)
PRINT "親フォルダ<#TAB>" + .GetParentFolderName(path)
ENDWITH
- 結果
- ファイル名 sample.txt
ベース名 sample
拡張子 txt
親フォルダ D:\Desktop