Board logo

標題: 想請教一下關於bat file 既寫法 [打印本頁]

作者: 長勝飛龍    時間: 2008-10-29 11:54     標題: 想請教一下關於bat file 既寫法

我想問呢我寫左個bat 用黎清垃圾
del /f /s /q %systemdrive%\*.tmp <--類似咁樣既
我如果想幫其他幾部機清埋 例如\\192.168.1.1\ABC\*.tmp <--佢話我冇權限or 冇login ,我點先可以寫到我俾埋login 同pw 佢清呀

[ 本帖最後由 長勝飛龍 於 2008-10-29 11:56 編輯 ]
作者: corvus    時間: 2008-10-29 13:33

What about mounting the shared volume to a drive letter first?

net use T: \\computername\sharefolder /user:domain\username password /persistent:no
{your commands here to clean T:}
作者: 長勝飛龍    時間: 2008-10-29 14:51

原帖由 corvus 於 2008-10-29 13:33 發表
What about mounting the shared volume to a drive letter first?

net use T: \\computername\sharefolder /user:domain\username password /persistent:no
{your commands here to clean T:}

/user:domain\username password /<--呢一段應該點理解呀師兄 我唔係好識
作者: Puff    時間: 2008-10-31 14:29

原帖由 長勝飛龍 於 2008-10-29 14:51 發表

/user:domain\username password /

如果唔係網域入面

/user:電腦名稱\使用者 密碼
  1. /user:MYCOMPUTER\Users 123456
複製代碼





歡迎光臨 電腦領域 HKEPC Hardware (https://h0.hkepc.com/forum/) Powered by Discuz! 7.2