Jump to content

PS-CSV-For each in Autoit


Lapinos
 Share

Recommended Posts

Hola,

 

I have worked with Powershell and the function For each and i'm looking to apply it in autoit. I think my research go in the wrong way and i require your help please

 

I trying to import a csv (or any other way) with one column to create a "foreach" loop. The script has to be a au3 only.

 

Example :  

$users = toto,tata,tutu

foreach ($user in $users)

send ("$user")

 

I apologize about my Autoit scripting knowless and i hope you will be easy with me for this time ^^

Link to comment
Share on other sites

1 hour ago, spudw2k said:

Or this also

or without the return count in the first element ;)

$users = 'toto,tata,tutu'
$users = StringSplit($users,',', 2) ; 2 = disable the return count in the first element

For $user In $users
    ConsoleWrite($user & @CRLF)
Next

 

Musashi-C64.png

"In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move."

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...