我正在尝试使用批处理文件将分散在一个主目录的几个子目录中的所有.txt文件复制到另一个目录中。我研究了这个网站,在这个链接上找到了很多答案:。就像来自Jay的以下代码:
set dSource=C:\Main directory\sub directory
set dTarget=D:\Documents
set fType=*.doc
for /f "delims=" %%f in ('dir /a-d /b /s "%dSource%\%fType%"') do (
copy /V "%%f" "%dTarget%\&
我使用的方法如下:
Maven 3.1
Selenide v3.5
Selenium v2.53
Firefox v45.0.1
Linux aws
当我运行所有的测试shell脚本时,所有的运行都成功地完成了,而没有出现未连接的异常。
但是,当我做一个cron作业来重复运行这个shell时,我得到了一个例外:
org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms.
我搜索这个问题,一些人认为这是由于使用cron作业造成