通过批处理文件

时间:2017-06-08 07:37:58

标签: bash cygwin

我有一个unix shell脚本,我成功运行了Cygwin。由于脚本将由没有IT知识的人使用,我希望它通过批处理文件执行。

我使用以下内容创建了.bat文件:

@echo off
C:\cygwin64\bin\bash C:\Sparkpay\MainScripts\converttocsv.sh

它无法运行但出现以下错误:

C:\Sparkpay\MainScripts\converttocsv.sh: line 9: ls: command not found
C:\Sparkpay\MainScripts\converttocsv.sh: line 9: awk: command not found
C:\Sparkpay\MainScripts\converttocsv.sh: line 10: date: command not found
C:\Sparkpay\MainScripts\converttocsv.sh: line 15: cat: command not found
C:\Sparkpay\MainScripts\converttocsv.sh: line 15: sed: command not found
C:\Sparkpay\MainScripts\converttocsv.sh: line 15: uniq: command not found
C:\Sparkpay\MainScripts\converttocsv.sh: line 99: rm: command not found
C:\Sparkpay\MainScripts\converttocsv.sh: line 100: mv: command not found

我更新了PATH以包含c:\cygwin64\bin\bash

我错过了什么吗?

谢谢

0 个答案:

没有答案