Commit 16e684ea by 陶腾飞

v1.7.0 更新PDF转化工具,优化用户备份

parent f6c7d58c
......@@ -8,7 +8,7 @@ const DaemonListen string = ":" + DaemonPort
const ADServerDaemon string = Host_adserver + DaemonListen
const WxwrokDaemon string = ":16823"
const RandMax int = 60
const Version string = "1.6.1"
const Version string = "1.7.0"
// user //
......
......@@ -197,8 +197,11 @@ func (exec *MJexec)Msg_Deal()interface{}{
}
}
exec.Status= Msg_Exec_State_Over
exec.Status = Msg_Exec_State_Over
case Msg_Exec_OpenAdminEXE:
PsExec_sdi(exec.Computername,exec.Command,exec.SessionID)
exec.Status = Msg_Exec_State_Over
default:
Execcmd_nowait(exec.Command)
}
......
......@@ -79,6 +79,7 @@ const Msg_Exec_RebootWindows string = "rebootWindows"
const Msg_Exec_RebootWindows_cmd string = "shutdown -r -t 15"
const Msg_Exec_InstallSoftware string = "installsoftware"
const Msg_Exec_HideShowIcon string = "HideShowIcon"
const Msg_Exec_OpenAdminEXE string = "OpenAdmin"
......@@ -210,11 +211,11 @@ func GJexecInstallSoftware(b bool,s string) interface{}{
exec.Command = s
return exec
}
func GJexecUserCmd(s string) interface{}{
func GJexecDIYFlag(flag,command string) MJexec{
var exec MJexec
exec.Init("")
exec.Command = s
exec.Status = Msg_Exec_State_Ack
exec.Init(flag)
exec.Command = command
return exec
}
......
......@@ -137,7 +137,6 @@ func siEnter_admin(softname string){
go pub.Msg("等待弹出安装窗口,请稍等。。")
ifFile := pub.Exist(`C:\windows\`+softname)
pub.SendServer(pub.GJexecInstallSoftware(ifFile,softname))
}
......@@ -151,20 +150,20 @@ func siEnter_admin(softname string){
func menuInitTools(ni * walk.NotifyIcon){
fa := "工具集合"
sub := [...]string{"Excel关键词分割","备份用户文件","优雅批量打开网页","隐藏/显示桌面图标","更新手机代理程序","移动硬盘(胡一波)"}
sub := [...]string{"Excel关键词分割","备份用户文件","优雅批量打开网页","隐藏/显示桌面图标","更新手机代理程序","PDF转换"}
// 建立空菜单
nm,err := walk.NewMenu()
if err != nil {
pub.PntError(err)
}
lastone := len(sub)-1
//lastone := len(sub)-1
for i,buttonText := range sub{
// 过滤按钮
switch i{
case lastone:
if ! pub.TheUser(pub.AD_User_huyibo) {continue}
}
// switch i{
// case lastone:
// if ! pub.TheUser(pub.AD_User_huyibo) {continue}
// }
// 建立 子按钮
na := walk.NewAction()
......@@ -185,8 +184,7 @@ func menuInitTools(ni * walk.NotifyIcon){
case 4:
na.Triggered().Attach(tUpdateATool)
case 5:
na.Triggered().Attach(tmovedisk_huyibo)
na.Triggered().Attach(tPdfTrans)
}
// 将 子按钮 添加到 菜单
......@@ -274,16 +272,24 @@ func tBakcupUser(){
pub.SendServerReport(pub.Msg_Report_InitBak)
}
}
// 其他工具 备份用户文件
func tPdfTrans(){
AcrobatDC := `C:\Application\AcrobatDC\AcrobatDCPortable.exe`
if pub.NotExist(AcrobatDC){
go pub.Msg(`Acrobat DC不存在,请先从"软件安装"中安装`)
return
}
go pub.Msg(`Acrobat DC正在打开`)
pub.SendServer(pub.GJexecDIYFlag(pub.Msg_Exec_OpenAdminEXE,AcrobatDC))
return
}
// 其他工具 更新手机代理程序
func tUpdateATool(){
pub.Execcmd_wait(`xcopy \\adserver\software\phoneproxy\ATools\win-unpacked C:\Application\win-unpacked /D /S /E /C /y`)
pub.Msg("更新完成")
}
// 其他工具 移动硬盘(胡一波专用)
func tmovedisk_huyibo(){
//pub.SendDaemonExec(`F:\SamsungPortableSSD.exe`)
}
// 其他工具 隐藏/显示桌面图标
func tHideShowIcon(){
pub.Msg("注:并非所有图标都会列出,没有列出的图标请手动隐藏(右键文件,打开属性,勾选隐藏,点击确定)")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment