Jump to content
Sign in to follow this  
probedrone

Run POWERSHELL from Autoit

Recommended Posts

probedrone

I dont know if a lot of people are familiar with powershell, but basically how would you be able to run a powershell script form autoit?

It isnt a program, so doing Run(Script.ps1) would just open a text file, and doing @COMSPEC won't work since it isnt really a DOS console app...

Share this post


Link to post
Share on other sites
enaiman

Not sure about but you can try:

Run("program_name path_to_your_script\Script.ps1")

program_name will be the name of your power shell exe (give a full name - path included)

path_to_your_script\Script.ps1 - the full name of your script (path included)


SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script

wannabe "Unbeatable" Tic-Tac-Toe

Paper-Scissor-Rock ... try to beat it anyway :)

Share this post


Link to post
Share on other sites
lordofthestrings

try retrieving (in taskmgr) the process name for the powershell box.

then you should be able to run("interpreter" & " script.psl")

Edited by lordofthestrings

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×