Linux can run bat file it?

  1. bat batch file, can be used on windows and linux.

  2. But in linux command line can not directly knock "xxx.bat", the system will find all the commands.

  3. I want to call bat file, need to write absolute path, such as "/home/myDir/xxx.bat", or change to the directory where the bat file, then type:. "./ xxx.bat" here "./" It tells the system to find a file named "xxx.bat" executed in the current directory.

  4. You can not use windows-specific command in the bat file.

  5. Before performing the bat file to make sure the permissions bat file is executable, if not change the permissions, then, it is likely to report an error: Permission denied permission to change the way your own query "chmod" command to use.

Guess you like

Origin www.cnblogs.com/frankcui/p/11598998.html