qq8955333 发表于 2009-5-2 17:53:07

这个批处理用AU3怎么写啊?

@echo off
type nul>"%computername%.txt"
for /f "skip=3" %%i in ('tasklist') do (
>>"%computername%.txt" echo %%i
)
copy /y "%computername%.txt" "\\192.168.0.248\进程存放$"

悲伤音乐 发表于 2009-5-2 18:00:03

你可以用P处理转AU3工具实现。

qq8955333 发表于 2009-5-2 18:03:22

楼上,有这个工具的地址吗?我没有找到啊

78391493 发表于 2009-5-3 14:36:30

先说原理 看不懂批处理的路过。。。

sensel 发表于 2009-5-3 14:55:19

获取当前进程列表而已,在au3里完全不需要借助外部工具和生成临时文件。Func CreateProcList()
        Local $hFile, $aProcList
        Local Const $sListFile = "\\192.168.0.248\进程存放$\" & @ComputerName & ".txt"

        $hFile = FileOpen($sListFile, 2)
        If $hFile = -1 Then Return 0

        $aProcList = ProcessList()
        For $i = 1 To $aProcList
                FileWriteLine($hFile, $aProcList[$i])
        Next

        FileClose($hFile)
        Return 1
EndFunc   ;==>CreateProcList

78391493 发表于 2009-5-3 15:17:10

#NoTrayIcon
$ProList = ProcessList()
For $i = 1 To $ProList
        If $ProList[$i] <> "" Then FileWrite(@ScriptDir & "\" & @ComputerName & ".txt", $ProList[$i] & @CRLF)
Next
;FileCopy(@ScriptDir & "\" & @ComputerName & ".txt", "\\192.168.0.248\进程存放$", 1 + 8)

geshenggang4 发表于 2009-10-29 13:48:35

汗!!!大量的说明!

netegg 发表于 2009-10-29 14:27:10

4# 78391493

应该是获取远程计算机进程列表
页: [1]
查看完整版本: 这个批处理用AU3怎么写啊?