我有一个批处理文件,我正在尝试将文件从本地计算机复制到网络位置。我的文件未从目标位置复制到源位置。
我的批处理文件的内容是:
set TEST_HOME=%~dp0
cd %~dp0
E:
SET PATH=%PATH%;e:\test_runners 2 edit project\selenium_regression_test_5_1_1\IEDriverServer\32bit
SET PATH=%PATH%;e:\Python27;e:\Python27\scripts
cd %~dp0selenium_regression_test_5_1_1
set PYTHONPATH=%~dp0selenium_regression_test_5_1_1
nosetests "%~dp0selenium_regression_test_5_1_1\TestSuite\suite_regression.py"
timeout 10
: Copy selenium_report to storage-1
xcopy /y %~dp0selenium_regression_test_5_1_1\TestReport\ClearCore_Automated_GUI_Regression_TestReport \\STORAGE-1\Testing\Selenium_Test_Report_Results\ClearCore\Selenium VM\IE11
timeout 10
: Email the selenium report
e:\python27\python "%~dp0selenium_regression_test_5_1_1\Email\email_selenium_report.py"
未复制文件的行是:
xcopy /y %~dp0selenium_regression_test_5_1_1\TestReport\ClearCore_Automated_GUI_Regression_EditProject_Grouping_IE11_TestReport \\STORAGE-1\Testing\Selenium_Test_Report_Results\ClearCore\Selenium VM\IE11
我认为Xcopy语法有问题。
谢谢Riaz