sql远程打开pcanywhere 服务

exec master..xp_cmdshell 'tasklist'
exec master..xp_cmdshell 'taskkill /im awhost32.exe /T /F'

结束进程
exec master..xp_cmdshell 'net start'

exec master..xp_cmdshell 'dir  "c:\Documents and Settings\All Users\Application Data\Symantec\pcAnywhere\Hosts\*.*"'

查找文件

exec master..xp_cmdshell '"c:\Documents and Settings\All Users\Application Data\Symantec\pcAnywhere\Hosts\New Host.BHF"'

启动

原文地址:https://www.cnblogs.com/cwfsoft/p/1675839.html