The following script is executed within Sketchup as a ruby script.
notepad = File.absolute_path("notepad.exe", "C:/Windows")
puts "fileName :"+notepad
exec((notepad))
When closing the notepad.exe windows ... it also close/quit Sketchup. How to only close notepad.exe and not Sketchup ?
Thks
You are using exec to run notepad, but according to documentation exec replaces the current process.
Try running the command using system method instead - it executes command in a subshell
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With