Pass cmd.exe arguments via a shortcut?
Solution 1:
When you create a batch file (.bat). Any thing that is dragged and dropped will infact turn into a command line parameter.
You can access these parameters with a %1, %2, %3... etc
So in you case ...So basically it is running cmd, launching ruby, passing in the directory and activating livereload...
in your bat file (assuming your ruby stuff is properly in your path)
@echo off
echo %1
ruby myScript.rb %1
EXIT
then all you would need to do is drag and drop that directory onto the script and all will run properly
Solution 2:
use this :
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\livereload]
@="Livereload"
[HKEY_CLASSES_ROOT\Directory\shell\livereload\Command]
@="cmd.exe /E:ON /K C:\\Ruby191\\bin\\setrbvars.bat & pushd %L & @livereload"
works for me... you can edit @="Livereload" to change what it says in the context menu