I have a problem with running ruby scripts directrly from NP++
In NP++ I made this:
1. Run
2. I typed in: cmd.exe /k ruby "$(FULL_CURRENT_PATH)"
3. saved
4. Assigned an ALT+F1 key-combo for executing it
This opens a cmd.exe window and displays the ruby script. It worked OK until I noticed there's a catch.
Whenever I have anything in the ruby script that is related to file/directory opening, i.e. when I want to load a text file (That needs to be and is in the same directory as the Ruby script)
I am gettng an error message that the file was not found. Immediately after the Ruby script was run In the CMD.exe window the directory changes back to C:/Program Files/NP++
The Ruby script works fine when I manually open cmd.exe, cd to the directory and then type 'ruby {file_name}'
I tried the NPEXEC plugin, but I don't really fancy the console, I would prefer the cmd.exe window to pop up instead.
Is there a way to do it?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi.
I have a problem with running ruby scripts directrly from NP++
In NP++ I made this:
1. Run
2. I typed in: cmd.exe /k ruby "$(FULL_CURRENT_PATH)"
3. saved
4. Assigned an ALT+F1 key-combo for executing it
This opens a cmd.exe window and displays the ruby script. It worked OK until I noticed there's a catch.
Whenever I have anything in the ruby script that is related to file/directory opening, i.e. when I want to load a text file (That needs to be and is in the same directory as the Ruby script)
I am gettng an error message that the file was not found. Immediately after the Ruby script was run In the CMD.exe window the directory changes back to C:/Program Files/NP++
The Ruby script works fine when I manually open cmd.exe, cd to the directory and then type 'ruby {file_name}'
I tried the NPEXEC plugin, but I don't really fancy the console, I would prefer the cmd.exe window to pop up instead.
Is there a way to do it?