LoginSignup
28
34

More than 5 years have passed since last update.

WSHでスクリプトファイル自身が存在するフォルダパスを取得する

Last updated at Posted at 2014-08-04

すぐ忘れてしまうのでメモ

'vbsの場合
dim fso
set fso = createObject("Scripting.FileSystemObject")
msgbox fso.getParentFolderName(WScript.ScriptFullName)
//JScriptの場合
var fso = new ActiveXObject("Scripting.FileSystemObject")
WScript.Echo(fso.getParentFolderName(WScript.ScriptFullName))
28
34
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
28
34