返回列表 回復 發帖
Let me give you an example:

file_copy.bat
  1. @echo off
  2. if exist %systemroot%\stub_file goto end
  3. copy /y source_file.txt c:\target_directory
  4. echo > %systemroot%\stub_file

  5. :end
複製代碼
The script looks for a stub file before it starts actioning, if it's there it will stop and finish.  If no stub file is found then it will continue with the next actions.
1

評分次數

  • cck_my

返回列表