English 中文(简体)
如果其他档案已经公开,是否可以进行批量档案检查?
原标题:Is it possible to make a batch file check if other files are open?
  • 时间:2011-05-21 06:04:22
  •  标签:
  • batch-file

因此,我想用批量文档打开另一个档案,但如果已经翻开两番(如果档案已经两次在用户台上开放的话),我不想开立。 是否可能在批量档案中这样做? 同我一样,如果要开笔记本,如果笔记本已经两度开张,那就会开立笔记本,但如果总记本开张,则会开两张。

这是可能的吗?

也可在批量档案中分离近(X)纽吨吗?

最佳回答

如果起诉人已经开业,要检查一下。

 FOR /F "tokens=1,2" %%a in ( TASKLIST ^| FIND /I "myexec" ) DO (
    set ALREADY=%%a %%b 
 )
 IF "%ALREADY%"="" ECHO EXECUTEIT

此外,如果你想做一些事情的话,你会以百分数B获得已经可执行的起诉。

问题回答

暂无回答




相关问题
complex batch replacement linux

I m trying to do some batch replacement for/with a fairly complex pattern So far I find the pattern as: find ( -name *.php -o -name *.html ) -exec grep -i -n hello {} + The string I want ...

How to split a string by spaces in a Windows batch file?

Suppose I have a string "AAA BBB CCC DDD EEE FFF". How can I split the string and retrieve the nth substring, in a batch file? The equivalent in C# would be "AAA BBB CCC DDD EEE FFF".Split()[n]

How to check which Operating System?

How can I check OS version in a batch file or through a vbs in an Windows 2k/2k3 environment ? You know ... Something like ... : "If winver Win2k then ... or if winver Win2k3 then ....

热门标签