Hi, Raveendran Jazzez wrote: > Hi All, > > I got simple solution. But need t sharp it. > > I got code to shutdown my machine, getting ipconfig in my machine > etc..,(whatever possible to get via command prompt.) > > My Code: > > system('ipconfig') > > I got my IP Address. > > Problem: > > a= system('ipconfig') > > puts a > > I got only true. Please help to store the content in single variable. > Try with backtick operator: a = `ipconfig` If you want only IP Address, you can do something like this: a = `ipconfig`.scan(/IP Address.+?: (.+)\r/).to_s Regards, Park Heesob -- Posted via http://www.ruby-forum.com/.