Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • hi, i have tryed your code. If i have a filename o pathname like "long path" with space inside, with administrator checked option dont work. the batch script is in d:\batch\run.bat, my OS is in c:
    – Frontender
    Commented Jun 22, 2015 at 20:10
  • Important: your shortcut target in the shell:SendTo folder should be cmd /C d:\batch\run.bat (note that windows will translate it to C:\Windows\System32\cmd.exe /C d:\batch\run.bat automatically after clicking Apply)
    – JosefZ
    Commented Jun 22, 2015 at 20:23
  • thanks a lot, seem work right now. i had find an issue. If the pathname of the directory with the .bat script look like "batch script inside", the script dont work. It's not a real problem, just use a simply name like "batch".
    – Frontender
    Commented Jun 22, 2015 at 20:59