【发布时间】: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