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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.