开发者

How can I open every file in a given directory using a batch or vbs script?

开发者 https://www.devze.com 2023-02-13 07:53 出处:网络
I have a static directory, but dynamic 开发者_如何学Pythonfiles. I want to write a batch file that scans the directory and automatically opens any file that gets dropped in there. I would prefer to do

I have a static directory, but dynamic 开发者_如何学Pythonfiles. I want to write a batch file that scans the directory and automatically opens any file that gets dropped in there. I would prefer to do it with a batch or vbs script, although open to anything at this point. I've tried a bunch of things and nothing seems to work quite the way I want it to——please help!


Maybe something like this in a bat file

for %%i in (c:\temp\*.*) do start %%i

to open all the files using the file association.

0

精彩评论

暂无评论...
验证码 换一张
取 消