powershell - Running an exe with dynamic arguments -
i execute command:
dot -tjpg c:\wamp\www\schoolmate\pixy\graphs\xss_index.php_1_min.dot > c:\wamp\www\schoolmate\pixy\graphs\xss_index.php_1_min.jpg for files in directory. names of output files should same input file except extension.
something should work (untested):
get-childitem c:\wamp\www\schoolmate\pixy\graphs\*.dot | % { & dot -tjpg $_ > "$($_.directory)\$($_.basename).jpg" }
Comments
Post a Comment