1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ツリーをコピー

Last updated at Posted at 2016-10-25

ツリーをコピー

以下のスクリプトをどこかに保存して
sendToにショートカットをおいておく

copytree.vbs
Option Explicit

Sub treeclip(currentPath)
	Dim WSH, sCmd
	Set WSH = CreateObject("WScript.Shell")
	sCmd = "tree " & currentPath & " /f|clip"
	Call WSH.Run("%ComSpec% /c " & sCmd, 0, false)
	Set WSH = Nothing
End Sub

IF WScript.Arguments.Count > 0 Then
	Call treeclip(WScript.Arguments(0))
End If
1
0
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?