Read a value from a .xls file using .bat files

前端 未结 4 1342
礼貌的吻别
礼貌的吻别 2021-01-25 05:23

I just want to know if there could be any way by which we can read a value from an .xls file using a .bat file. For eg:If i have an .xls named test.xls which is having two colu

4条回答
  •  孤城傲影
    2021-01-25 06:06

    There is no facility to do this directly with traditional .bat files. However, you might investigate PowerShell, which is designed to be able to do this sort of thing. PowerShell integrates well with existing Windows applications (such as Excel) and may provide the tools you need to do this easily.

    A quick search turned up this example of reading Excel files from PowerShell.

提交回复
热议问题