Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > PowerShell

Batch Script

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 12-01-2006   #1 (permalink)
jon
Guest


 

Batch Script

Hello,

When I call a batch script, is a cmd.exe being run to intepret it or is
it being intepreted in powershell?

If it is being intepreted in powershell, is there a way that the batch
script can tell whether it is being run in powershell or runned with a
regular cmd?

Thanks,
Jonathan


My System SpecsSystem Spec
Old 12-01-2006   #2 (permalink)
dreeschkind
Guest


 

RE: Batch Script

*.bat and *.cmd files are interpreted by the programs that the extensions are
connected with. Usually this is cmd.exe (command.com on older versions of
Windows). PowerShell does not interpret them, it starts the connected program
in a new separate process. Input/ouput are only redirected to the same
console window.

--
greetings
dreeschkind

"jon" wrote:

> Hello,
>
> When I call a batch script, is a cmd.exe being run to intepret it or is
> it being intepreted in powershell?
>
> If it is being intepreted in powershell, is there a way that the batch
> script can tell whether it is being run in powershell or runned with a
> regular cmd?
>
> Thanks,
> Jonathan
>
>

My System SpecsSystem Spec
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with a Batch file script (FTP) MariusK Vista General 2 07-31-2008 08:13 PM
how to create a new vpn connection using script o batch Bryan Cisneros VB Script 1 06-20-2008 02:35 AM
replicate a batch script to powershell zuume84 PowerShell 3 09-17-2007 03:28 PM
How to run PS script with parameters from a batch file =?Utf-8?B?Um9tYW4gS3V6bWlu?= PowerShell 1 09-09-2006 01:35 PM
How to run PS script with parameters from cmd batch file? =?Utf-8?B?Um9tYW4gS3V6bWlu?= PowerShell 5 07-22-2006 10:00 AM


Update your Vista Drivers Update Your Drivers Now!!

Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
Designer Media 2005-2008