Power shell table manipulation

Hello,

I have issue in this power shell command. I would retrieve table item. 

@echo off
$MonTableau = @("admin","trans","references","dico")
foreach ($data in $MonTableau)
{
@echo $data
}
pause

but cmd prompt not recognize anything. 

I use windows7 

November 20th, 2014 4:34am

Your are using a mix of powershell and cmd commands in the cmd shell. They are completely different things. Powershell has its own console.
Free Windows Admin Tool Kit Click here and download it now
November 21st, 2014 6:46am

PowerShell does not support that syntax and CMD shell or batch does not support that syntax.

I suggest starting here: http://technet.microsoft.com/en-us/scriptcenter/dd793612.aspx

November 21st, 2014 6:49am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics