Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 8583

Command line arguments in PS

$
0
0

Hi All,

 

I'd like to call the following CMD command in Powershell with these parameters: svr1, svr2, db1, db2 and the script file name. Any help is appreciated. Thank you.

 

C:\OCDB.exe CN1="Data Source=svr1;Initial Catalog=db1;Integrated Security=SSPI;" CN2="Data Source=svr2;Initial Catalog=db2;Integrated Security=SSPI;" F="C:\script.sql"


Viewing all articles
Browse latest Browse all 8583

Trending Articles