更新时间:2023-12-05 18:24:40
一个几句话:
CT lsprivate
是伟大的动态看法,并不快照视图 CT LS -rec -view_only
以及 CT lsprivate
还列出你签出的文件...我不知道要删除那些... ct lsprivate
is great for dynamic views, not snapshot viewsct ls -rec -view_only
as well as ct lsprivate
also list your checked-out files... I am not sure you want to delete those...有关上市私人文件(仅私房,你可能要保持不被劫持的),你需要有一个命令:
For listing private files (only private ones, not hijacked ones you may want to keep), you need to have a command that:
(奖金)不依赖于外部的shell命令
(bonus) does not depend on external shell commands
FOR / F有usebackq delims =%i的(`cleartool LS -r ^ |找到/ V规则:^ |找到/ V劫持^ |找到/ V黯然失色^ |找到/ V - >中`)做@echo%i的
,列出你所有的私人文件(跳过劫持/黯然失色/签出或非私人领域,以及符号链接)的纯Windows的方式(不需要外部外壳的依赖)。结果
替换 @echo%i的
按 DEL / F%i的
和他们都走了。结果
注%左右的我的双引号,以显示/删除在他们的名字空间的正确文件。
还要注意由于没有cleartool参数-nxn,因为符号链接,否则将无法区分和视图专用文件不会被装饰反正。
That lists all your private files (skipping the hijacked/eclipsed/checked-out or non-private ones as well as symlinks) in a pure Windows way (no external shell dependency needed).
Replace @echo "%i"
by del /F "%i"
and they are gone.
Note the double quotes around %i, in order to display/remove properly files with spaces in their name.
Also note the absence of the cleartool parameter -nxn, as symlinks would otherwise be indistinguishable and view-private files are not being decorated anyway.
为了也摆脱私人目录,先用命令rmdir / S / Q运行命令%I
,然后用德尔/ F%i的
。
In order to also get rid of private directories, first run the command with rmdir /S /Q "%i"
and then with del /F "%i"
.