2011-12-09 145 views

回答

1

對於一個批處理文件,這個答案可能會有所幫助:

batch file to monitor additions to download folder

你需要有自己的擴展解決方案,啓動檢測到的變化。

在C#這可以很容易地完成。這個問題:How can I monitor a Windows directory for changes?是類似的。

+0

感謝的人,你讓我很快樂;)我: 關閉@echo 如果不存在C:\ OldDir.txt回聲。 > C:\ OldDir.txt DIR/b 「的d:\我的文件夾」> C:\ NewDir.txt 設定爲等於=無 FC C:\ OldDir.txt C:\ NewDir.txt | find/i「no differences」> nul &&設置 equal = yes copy /yc:\Newdir.txt c:\ OldDir.txt> nul if%equal%== yes goto:eof rem您的批處理文件行轉到這裏 – mojamoja

+0

其實,我該如何運行它?我仍然看不到這個腳本是如何知道mango.exe是新的? – mojamoja

0
move \wherever\mango.exe c:\files\mango.exe 
start mango.exe 
+0

我認爲他們想看更改目錄,只要檢測到新的文件應該被打開。 – Joey

+0

@喬伊 沒錯,你能幫我嗎? – mojamoja

+0

得到答案以上^ – mojamoja

相關問題