From: Simon Staton Date: 2009-08-14T17:11:11+09:00 Subject: Re: newbie question making a folder with ruby Lui Core wrote: > Simon Staton wrote: >> ok well the program I am in the middle of programming I need it to >> generate a folder in the c: when it loads up. >> >> does anyone know how I can do this? and possibly make it with an if >> variable so if there is already a folder in the c: called action3d dont >> generate one but if there isnt then make one > > Yet another answer (command line): > > ruby -run -e mkdir newdirname > > or in rb code: > > `ruby -run -e mkdir newdirname` yeh im using a .rb file to do my codeing. so if I was to put code in there wanting to make a folder on there c: called temp what would I put. =) sorry noob to ruby here ^^ -- Posted via http://www.ruby-forum.com/.