Skip to content

Instantly share code, notes, and snippets.

@hymkor
Created September 10, 2014 16:28
Show Gist options
  • Save hymkor/4dc94470f0709c8ff122 to your computer and use it in GitHub Desktop.
Save hymkor/4dc94470f0709c8ff122 to your computer and use it in GitHub Desktop.
lnk.vbs と specialfolder.vbs を使って、sendto フォルダーへファイルを置くバッチ
@echo off
setlocal
set "HERE=%~dp0"
shift
for /F %%I in ('cscript //nologo "%HERE%specialfolder.vbs" sendto') do set "SENDTO=%%I"
for %%I in (%0 %1 %2 %3 %4 %5 %6 %7 %8 %9) do cscript //nologo "%HERE%lnk.vbs" "%%I" "%SENDTO%\."
endlocal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment