WebConsole/Web Cmd/Cmd behind

image

通过网页远程执行cmd命令,实现数据重置、数据推送执行,方便小伙伴进行联调。

小工具主要是通过调用cmd命令并将执行结果返回到Web页面。

返回结果示例:

Microsoft Windows [版本 10.0.10586]
(c) 2015 Microsoft Corporation。保留所有权利。

c:\windows\system32\inetsrv>cd C:\Users\*\5.软件与工具\跨系统数据同步工具\DataPusher\DataPusher\DataPusher\bin\Debug\

C:\Users\zhong\Documents\*\5.软件与工具\跨系统数据同步工具\DataPusher\DataPusher\DataPusher\bin\Debug>copy ResetConfig\*  Config /Y
ResetConfig\app.json
ResetConfig\CIQStatus.json
ResetConfig\default.json
ResetConfig\PurchaseHistory.json
ResetConfig\PurchaseNewStatus.json
已复制         5 个文件。

C:\Users\zhong\Documents\*\5.软件与工具\跨系统数据同步工具\DataPusher\DataPusher\DataPusher\bin\Debug>exit

Leave a Reply