Run a CMD batch file

To run a batch script from the CMD shell simply enter the name of the script and press return.

C:\Batch> Demo.cmd

To run a batch file from within another batch file, use the CALL command, otherwise the first script will exit without performing any further commands.

Run a Powershell script

To run a PowerShell script from the CMD shell:

C:\> powershell -file "c:\batch\demo.ps1"

Run a VBScript file

To run a VBScript from the CMD shell:

C:\> cscript c:\batch\demo.vbs

“The method of the enterprising is to plan with audacity and execute with vigor” ~ John Christian Bovee

Related

Run a script from PowerShell
Run a script from VBScript


© Copyright SS64.com 1999-2014
Some rights reserved