[wtr-general] Re: Opening an Excel file with a variable name

2008-12-17 Thread Jason Shelton
> Subject: [wtr-general] Re: Opening an Excel file with a variable name> > > Actually this method won't work. The problem is that File.join will join > the elements using a forward slash (/). The pathname is being passed to > Excel, which truly requires that backslashes be used

[wtr-general] Re: Opening an Excel file with a variable name

2008-12-17 Thread Bret Pettichord
Actually this method won't work. The problem is that File.join will join the elements using a forward slash (/). The pathname is being passed to Excel, which truly requires that backslashes be used in the filename. I've argued that this is a bug in Ruby, but there it is. Bret LFIdnl wrote: >

[wtr-general] Re: Opening an Excel file with a variable name

2008-12-17 Thread Jason Shelton
at could be going on? Thanks in advance for any help. - Shelton > Date: Wed, 17 Dec 2008 00:36:06 -0800> Subject: [wtr-general] Re: Opening an > Excel file with a variable name> From: sraniim...@gmail.com> To: > watir-general@googlegroups.com> > > More useful> &g

[wtr-general] Re: Opening an Excel file with a variable name

2008-12-17 Thread LFIdnl
More useful File.join($drive,env,"Test_Results","#{$file_name}_Results.xls" ) On 17 дек, 00:20, "Darin Duphorn" wrote: > Try \\ > > $drive+"\\"+env+"\\Test_Results\\"+$file_name+"_Results.xls" > > -Original Message- > From: watir-general@googlegroups.com > > [mailto:watir-gene...@google

[wtr-general] Re: Opening an Excel file with a variable name

2008-12-16 Thread Darin Duphorn
Try \\ $drive+"\\"+env+"\\Test_Results\\"+$file_name+"_Results.xls" -Original Message- From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of jas.shel...@hotmail.com Sent: Tuesday, December 16, 2008 3:08 PM To: Watir General Subject: [wtr-general] O