In class assignment

To complete this exam, you need to write a script that takes three agruments form the command line:

  • named argument rows which indicates the number of rows
  • named argument cols which indicates the number of columns
  • and unnamed argument file_name which specifies the name of the file to save your result.
    The script supposed to create a new Word document and insert a table with rows rows and cols columns in it. Each cell of the table should have a text like "Cell (3, 4)", where 3 is the column number and 4 is the row number of the cell.

    Your script should also save the resulting document as a web page under the name specified as the unnamed argument of the command line. The html file should be saved in the same folder where your script is located. (Hint: use the property ScriptFullName of the WScript object to retrieve the complete name of the script file and remove the file name leaving the path only with the regular expression replacement.)