返回列表 回復 發帖

[Windows] 有冇人識用 login script 去COPY FILE

我想用login script 去COPY 一個FILE俾D人, 但係可唔可以只COPY 一次,即是如果有個FILE 係到就唔抄俾佢.
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

Thankyou 大大
2# slyuen
非常有用, 留位, thank you
不錯用的SCRIPT, 先謝謝
幾好用, 有無其他教學
can use robocopy?
thank you. works well
返回列表