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

problem with a simple batch file

$
0
0

Hello

in my test lab, I am creating a cmd batch file which first sets the system execution policy to bypass & then continues into command prompt & does some stuff there. so I need the following commands be run in turn:

powershell set-executionpolicy bypass -force

cmd

@echo off

echo the installation of the following App will take about 10 minutes

cd c:\myfolder

myApp.exe

but only the first line of the command runs & it ends up in the following step:

 


Viewing all articles
Browse latest Browse all 6937

Trending Articles