Created
May 16, 2015 06:03
-
-
Save hymkor/ba3f85daa22f156f5ecc to your computer and use it in GitHub Desktop.
ゴミ箱にファイルを捨てる JScript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var shellApp = new ActiveXObject("Shell.Application"); | |
var trashBox = shellApp.NameSpace(10); | |
var fsObj = new ActiveXObject("Scripting.FileSystemObject"); | |
for(var i=0 ; i <WScript.Arguments.length ; i++ ){ | |
var arg1 = WScript.Arguments(i); | |
var path1 = fsObj.GetAbsolutePathName(arg1); | |
trashBox.MoveHere(path1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/zetamatta/Jatchfiles に登録