In my ruby script, I need to pass the path to the file system. For example, it’s like
system ("run.exe -l C: \"), where run.exe is my command, and -l defines the local path.
Now, if someone copies this to another machine drive C, you can change it to drive E.
So, I doubt how to do this as a variable or how to take the current folder path in this.
Any suggestions are welcome.
source share