2011-06-05 65 views
0

我想從使用Windows批處理腳本(.bat)遍歷目錄(遞歸)的所有文本文件中刪除此模式。如何從所有文本文件(遞歸)中刪除多行文本模式?

如何做到這一點?

這裏有一個多行文本模式:

/* this is 
a multi-line 
pattern 
*/ 
+0

你想從源代碼(C或C++或類似的東西)中刪除評論? – Mat 2011-06-05 10:24:27

+0

是的,你是對的。 – Ken 2011-06-05 10:33:55

+0

看看http://stackoverflow.com/questions/241327/python-snippet-to-remove-c-and-c-comments和http://stackoverflow.com/questions/2394017/remove-comments-from-cc -碼。你可能不會找到一個簡單的'cmd'工具的解決方案,問題比這更復雜。 – Mat 2011-06-05 10:46:56

回答

0

我想說cmd是不夠有效地做到這一點。嘗試python或其他一些更高級的語言。

相關問題