【问题标题】:Epicor 10 DMT Tool Command Line ArgumentsEpicor 10 DMT 工具命令行参数
【发布时间】:2017-07-28 06:21:30
【问题描述】:

在 Epicor DMT 工具中设置环境的命令行标志是什么? 运行下面的 powershell 脚本会导致 DMT 工具选择默认数据库(在本例中为实时数据库)。使用“-server”标志设置服务器确实会导致 DMT 工具连接到正确的环境。谢谢。

$DMTPath = ""
$Server = ""
$Port = ""

#Set UI (0 = no ui, !0 = ui)
$ui=0
$User = ""
$Pass = ""

$Env = ""
$Path = "filepath

$Import = @("","")

$File = @("","")

for ($i=0; $i -lt $Import.length; $i++){

    $Source = $Path + $File[$i]
    echo "Loading... " 
    $Import[$i]
    echo "$Source"

    $Args = "-User $User -Pass $Pass -Add=true -Update=true -Import $Import[$i] -Source $Source "

    if($ui -eq 0){ $Args = $Args + " -noui"}

    Start-Process -Wait -FilePath $DMTPath -ArgumentList $Args
}

echo "Process complete, confirm uploads are correct"

【问题讨论】:

  • 您的问题是“给我找个 Epicor DMT 的命令行参数”?还是“如何在 powershell 中设置环境变量?” (例如stackoverflow.com/questions/38928342/…
  • 对不起,不清楚,我的问题是命令行参数是什么,我在谷歌上搜索了很长时间,找不到关于 DMT 工具的太多文档。

标签: powershell epicorerp epicor10


【解决方案1】:

执行DMT.exe /? 将显示从命令行运行 DMT 的帮助。

我假设环境是指您想要连接的实例,即试点、测试、实时等。这是作为ConnectionUrl 的一部分完成的:

DMT.exe -ConnectionUrl=”net.tcp://localhost/Live” -Import=”Part” -Source=”C:\Imports\Part.csv” -Add=True -Update=True -user=manager -pass=manager

您可以从客户端配置文件夹中的 .sysconfig 文件获取连接 URL。

您可能需要登录并搜索 http://epicweb.epicor.com 以获取更多文档。

【讨论】:

    猜你喜欢
    • 2019-11-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多