probedrone Posted August 16, 2007 Posted August 16, 2007 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...
enaiman Posted August 16, 2007 Posted August 16, 2007 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 :)
randallc Posted August 17, 2007 Posted August 17, 2007 hi, shellexecute maybe? Randall ExcelCOM... AccessCom.. Word2... FileListToArrayNew...SearchMiner... Regexps...SQL...Explorer...Array2D.. _GUIListView...array problem...APITailRW
lordofthestrings Posted August 17, 2007 Posted August 17, 2007 (edited) try retrieving (in taskmgr) the process name for the powershell box. then you should be able to run("interpreter" & " script.psl") Edited August 17, 2007 by lordofthestrings
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now