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

Chris McMahon christopher.mcmahon at gmail.com
Wed Jun 6 14:24:26 EDT 2007


> 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)'

That's not DOS and that's not Watir.  That's Ruby.
You should definitely read up on the Ruby language itself.  The only
thing Watir knows about is the browser.


More information about the Wtr-general mailing list