Board logo

標題: [Windows] 有冇人識用 login script 去COPY FILE [打印本頁]

作者: webuserlogin    時間: 2012-7-3 01:32 AM     標題: 有冇人識用 login script 去COPY FILE

我想用login script 去COPY 一個FILE俾D人, 但係可唔可以只COPY 一次,即是如果有個FILE 係到就唔抄俾佢.
作者: slyuen    時間: 2012-7-3 05:58 AM

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.
作者: webuserlogin    時間: 2012-7-4 12:20 AM

Thankyou 大大
作者: cmbcoltd    時間: 2013-2-27 09:52 PM

2# slyuen
非常有用, 留位, thank you
作者: k1rs    時間: 2013-3-2 06:45 PM

不錯用的SCRIPT, 先謝謝
作者: jacksun1985    時間: 2013-5-4 11:07 AM

幾好用, 有無其他教學
作者: westley    時間: 2013-6-23 10:48 PM

can use robocopy?
作者: hero_zjw    時間: 2014-5-7 12:53 AM

thank you. works well




歡迎光臨 公仔箱論壇 (http://www1.tvboxnow.com/) Powered by Discuz! 7.0.0