删除'post build event'上的文件 [英] Delete files on 'post build event'

查看:168
本文介绍了删除'post build event'上的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,



我想使用'Post build Event'。



想要的东西:我想删除除一些文件以外的所有文件。



ex)A.dll, B.dll,C.dll,D.dll,E.dll,F.dll

剩余:C.dll,E.dll



actaully它是示例,但我有更多的文件。所以我不能一个一个地输入。



所以我想知道regualr表达或某些命令。



谢谢。



我的尝试:



del a.dll / Q / S

del b.dll / Q / S

del d.dll / Q / S

del f。 dll / Q / S



i想减少行。

解决方案

post build命令运行一些build-在你的系统路径上的DOS命令或可执行文件。

现在你知道一个可执行文件吗?

嗯,我没有...你可以写一个!

制作一个控制台应用程序就可以做到这一点。使它首先构建(使用依赖项属性项目设置),然后在构建后事件中调用它。瞧!

Hello,

I want to use 'Post build Event'.

Want thing : i wanna delete all file except some files.

ex) A.dll, B.dll, C.dll, D.dll, E.dll, F.dll
remain : C.dll, E.dll

actaully it is example, but i have more more files. so i can't input one by one.

So i want to know regualr expression or some command.

Thanks.

What I have tried:

del a.dll /Q /S
del b.dll /Q /S
del d.dll /Q /S
del f.dll /Q /S

i want to reduce line.

解决方案

post build command run some build-in DOS command or executable on your system path.
Now do you know of an executable which does that?
Well I do not but... You could write one!
Make a console app which does just that. Make it so it is build first (using the dependency property project setting) and then invoke it in the post build event. Voila!


这篇关于删除'post build event'上的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆