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, 12:43 am, Vikas Tulashyam <vtulash...@gmail.com> 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 subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---