Friday, 6 September 2013

Ruby Back Tick Cmd line call with variable

Ruby Back Tick Cmd line call with variable

How can I make calls to the command line using the back tick and
variables? Something like:
myvar = "C:\Program Files"
`cd ` + myvar

No comments:

Post a Comment