我想是守望,直到myfile.fla关闭不将Flash.exe
即
我想等到myfile.fla关闭不将Flash.exe
即
我如何能赶上myfile.fla的情况下关闭未将Flash.exe
在C#捕捉事件
' Open the notepad application
info.FileName = "Flash.exe"
' Pass a text file name so that notepad will open it
info.Arguments = "c:\MyFile.fla"
process.StartInfo = info
' Start the process (notepad)
process.Start()
ammm ...什么...? – shift66
你的问题没有道理。使用记事本时,关闭文件与关闭记事本非常相似;除非你在同一个记事本实例中打开另一个文件,这将会关闭以前打开的任何文件 - 但是这个事件不能从记事本本身之外“捕获”(合理)。你最好问自己想要达到什么目的(而不是如何)。 –
你想检测文件更改吗?如果是这样,请检查[FileSystemWatcher](http://msdn.microsoft.com/zh-cn/library/system.io.filesystemwatcher.aspx)类。 –