[Wtr-general] Can an 'excel' file be renamed with a Watir command?

vijay forum-watir-users at openqa.org
Wed Jun 6 13:14:45 EDT 2007


Hello people,

I have got a script that creates an 'excel_file' while running.  After running, I want to rename it so that next time, when the script is run, it will create the excel file anew.  Can I do that?  I tried a few DOS commands but I could find only two DOS commands working in Watir.  They are 'Dir.mkdir(directory)' and 'rmdir(directory)'

Thanks, in Advance,
Vijay


More information about the Wtr-general mailing list