Skip to content

Instantly share code, notes, and snippets.

@olleolleolle
Created February 26, 2018 12:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save olleolleolle/751fb332954c59dc895735f7f6d420b9 to your computer and use it in GitHub Desktop.
Save olleolleolle/751fb332954c59dc895735f7f6d420b9 to your computer and use it in GitHub Desktop.
desc 'Use ampersand in argument to system'
task :runbatch do |task_name, args|
command = 'tbat.bat && cmd /c start tbattwo.bat'
puts command
system command
end
echo "tbat.bat"
echo "tbattwo.bat"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment