batch file - Using .bat to launch a powershell script -


i can execute following script in powershell when try run script .bat unsucessful.is there way .bat file calls powershell script keeps failing. how create .bat script run powershell script below.

cd 'program files (x86)\citrix \xenapp \serverconfig' .\xenappconfigconsole.exe /executionmode:join /farmname:xencity /odbcusername:chris /odbcpassword:jahner0 /dsnfile:"c:\xencitylifesqlds.dsn" 

please guys many thanks

you can putting powershell @ start of command

powershell cd 'program files (x86)\citrix \xenapp \serverconfig' .\xenappconfigconsole.exe /executionmode:join /farmname:xencity /odbcusername:chris /odbcpassword:jahner0 /dsnfile:"c:\xencitylifesqlds.dsn"

that calls powershell , gives command run, except running in cmd.


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -