简单但有用的powershell脚本不起作用

时间:2018-05-18 17:24:32

标签: windows powershell debugging scripting

这个脚本会提示.txt一个exe用于运行所有exe的所有dll

Get-Process |
    ForEach-Object {
        $procName = $_.Name
        tasklist /m /fi "imagename eq $procName.exe" > $procName.txt
    }

我在powershell中运行它但是它的#34; loading"并没有给我输出,但我找不到问题。

1 个答案:

答案 0 :(得分:1)

尝试下面的代码(请注意,我使用了已经创建的c:\ tests文件夹):

 <!DOCTYPE html>
    <html>
    <head>
    <title>title</title>

    </head>
    <body>



        <form method="POST" action="mon_am.php">
        <input type="text" name="mon_am">
        <input type="submit" name="submit" onblur="focusMethod()"> 

    </form>
    <script> 
            focusMethod = function getFocus() 
            {           
            $("input[name='mon_am']").focus();
            } 
     </script>
    </body>
    </html>