[wtr-general] Re: current script path

2009-04-05 Thread Vikas Tulashyam
Thanks to all of you for the reply..and sorry I will keep these things in mind before posting anything here. On Apr 4, 3:56 am, orde wrote: > Another way to get the current directory: > > my_dir = Dir.getwd > > OR > > my_dir = Dir.pwd > > As indicated by the previous poster, append .gsub('/',

[wtr-general] Re: current script path

2009-04-03 Thread orde
Another way to get the current directory: my_dir = Dir.getwd OR my_dir = Dir.pwd As indicated by the previous poster, append .gsub('/', '\\') to make it Windows-friendly. On Apr 3, 11:53 am, Tiffany Fodor wrote: > BTW Vikas, > > The Watir community is a great group of people who really wan

[wtr-general] Re: current script path

2009-04-03 Thread Tiffany Fodor
BTW Vikas, The Watir community is a great group of people who really want to help out each other as well and newbies. Lately, we've had some posters who haven't been very good citizens and it's made us all a little cranky. Your post hit at 12:43 AM for me (US Mountain time), so it was also very

[wtr-general] Re: current script path

2009-04-03 Thread Tiffany Fodor
Hi Vikas! I find the current directory like this: my_dir = File.dirname(__FILE__).gsub('/', '\\') The string substitution is to change the forward slash to a backslash for a Windows environment. The backslash needs to be escaped, thus the two backslashes. Hope this helps! -Tiffany On Apr 3,

[wtr-general] Re: current script path

2009-04-03 Thread Michael Hwee
Did you try $0 - Original Message From: Vikas Tulashyam To: Watir General Sent: Friday, April 3, 2009 2:33:43 AM Subject: [wtr-general] Re: current script path Hey sorry ..If it looks like rude ... I didn't mean anything like that .. I was just requesting.. Thanks Vikas On

[wtr-general] Re: current script path

2009-04-03 Thread Vikas Tulashyam
Hey sorry ..If it looks like rude ... I didn't mean anything like that .. I was just requesting.. Thanks Vikas On Apr 3, 2:25 pm, JArkelen wrote: > Replies to your questions are up to people willing to spend some time > to help you. > There is no such thing as 24/7 support here, so I personally

[wtr-general] Re: current script path

2009-04-03 Thread JArkelen
Replies to your questions are up to people willing to spend some time to help you. There is no such thing as 24/7 support here, so I personally consider your second post just an hour after your initial one as rather rude! Cheers, John On Apr 3, 9:54 am, Vikas Tulashyam wrote: > Please reply.. >

[wtr-general] Re: current script path

2009-04-03 Thread Vikas Tulashyam
Please reply.. On Apr 3, 11:43 am, Vikas Tulashyam wrote: > Hi friends, > I want to get the path of the currently running scripts.. Can anyone > please tell me how to get the path.. > > Thanks > Vikas --~--~-~--~~~---~--~~ You received this message because you are