From: Joel Pearson Date: 2012-07-21T04:06:37+09:00 Subject: Re: odd "system" command behaviour with CUI and GUI Bartosz DziewoƄski wrote in post #1069528: > That's weird. > > As a stopgap solution, have you tried using something like > > system 'cmd /c "attrib +h aaa.txt"' > > ? > > -- Matma Rex That works with an .rb extension but not .rbw Seems to be DOS based commands that aren't working without a console, and that extends to cmd itself. Interestingly I do get a flicker of a cmd window running that with rubyw, but it doesn't hide the file. It works if I use command prompt with ruby and run 'rubyw.exe test.rbw' from inside the command prompt window. Joe -- Posted via http://www.ruby-forum.com/.