
エクスプローラのアドレスバーなどです。

サンプルで作成したハイパーリンクをWordファイルなどに貼りつけることは可能ですが、そのWordファイルが「http://~」で始まるアドレスに移動した場合、そのリンクは無効になってしまいます。

「http://~」で始まるアドレスに移動する場合は、ハイパーリンクのリンク先アドレスを少し変える必要があります。
[循環参照を含むオブジェクトの例] obj = {a:0, b:1} obj.c = obj
<job> | |
<script> | |
fs = new ActiveXObject('Scripting.FileSystemObject') | |
shell = new ActiveXObject('WScript.Shell') | |
ffmpeg = fs.GetParentFolderName(WScript.ScriptFullName)+'\\ffmpeg.exe' | |
// WScript.Echo(ffmpeg) | |
arg = WScript.Arguments | |
if(!arg.length){ | |
WScript.Echo('変換するファイルをD&Dしてください') | |
WScript.Quit() | |
} | |
fun = function(str){return str.indexOf(' ')>0 ? ('"'+str+'"') : str} | |
path_h265 = fs.GetParentFolderName(arg(0))+'\\h265' | |
if(!fs.FolderExists(path_h265)){ fs.createFolder(path_h265) } | |
for(i=0,L=arg.length;i<L;i++){ | |
path = arg(i) | |
pathOut = path_h265+'\\'+fs.GetBaseName(path)+'.mp4' | |
shell.run(ffmpeg+' -i '+fun(path)+' -vcodec libx265 '+fun(pathOut), 1, true) | |
} | |
</script> | |
</job> |
<job> | |
<script> | |
excel = new ActiveXObject('Excel.Application') | |
excel.Visible = true | |
excel.Workbooks.Open(WScript.Arguments(0) , 1 , true) | |
</script> | |
</job> |