--001636c926deb6f082049d5d2582
Content-Type: text/plain; charset=ISO-8859-1

No need for funky escaping. Just use single-quotes instead

system('explorer.exe C:\your\folder')

HTH,

-Kalman Hazins

On Mon, Feb 28, 2011 at 2:45 PM, Quintus <sutniuq / gmx.net> wrote:

> Am 28.02.2011 20:20, schrieb paul h:
> > Hi,
> >
> > I am automating a few processes in my office - creating customer files
> > and folders that then need to be worked with manually. Once they have
> > been created, I need to open the root folder and display it with it's
> > contents, so that the user can then work directly on the files without
> > having to navigate to the folder.
> >
> > Is there a way with ruby to pop a folder open and to the top of the z
> > order? Couldn't find anything by googling.
> >
> > (The machines in the office all run win7)
> >
> > Thanks
> >
> > Paul
> >
> >
>
> Something like this (untested)?
>
> system("explorer.exe C:\\your\\folder")
>
> (Note the double backslash, you must escape backslashes in Ruby strings
> if you type them in literally)
>
> Vale,
> Marvin
>
>

--001636c926deb6f082049d5d2582--