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

how to call win32 console app or bat file from ps script

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 05-03-2007   #1 (permalink)
rowein
Guest


 

how to call win32 console app or bat file from ps script

I cannot find any examples and have not been able to figure it out myself.
Can anyone help me out?

I want to make the following command line call:

hxreg -n <string> -c <string> -d <string>

Thanks in advance.

My System SpecsSystem Spec
Old 05-03-2007   #2 (permalink)
RichS
Guest


 

RE: how to call win32 console app or bat file from ps script

if its an exe you should just be able to put the command with its parameters
as a line in your script
--
Richard Siddaway
Please note that all scripts are supplied "as is" and with no warranty
Blog: http://richardsiddaway.spaces.live.com/
PowerShell User Group: http://www.get-psuguk.org.uk


"rowein" wrote:

> I cannot find any examples and have not been able to figure it out myself.
> Can anyone help me out?
>
> I want to make the following command line call:
>
> hxreg -n <string> -c <string> -d <string>
>
> Thanks in advance.

My System SpecsSystem Spec
Old 05-03-2007   #3 (permalink)
rowein
Guest


 

RE: how to call win32 console app or bat file from ps script

That's too easy. I was looking for something slightly more difficult.
Thanks.

"RichS" wrote:

> if its an exe you should just be able to put the command with its parameters
> as a line in your script
> --
> Richard Siddaway
> Please note that all scripts are supplied "as is" and with no warranty
> Blog: http://richardsiddaway.spaces.live.com/
> PowerShell User Group: http://www.get-psuguk.org.uk
>
>
> "rowein" wrote:
>
> > I cannot find any examples and have not been able to figure it out myself.
> > Can anyone help me out?
> >
> > I want to make the following command line call:
> >
> > hxreg -n <string> -c <string> -d <string>
> >
> > Thanks in advance.

My System SpecsSystem Spec
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
[ann] another way to call api's from script (the PB way) mr_unreliable VB Script 0 07-03-2008 12:28 PM
function call from within powershell script Anatoli PowerShell 2 08-08-2007 12:54 PM
PS Console when invoking a script from VB.NET Dan PowerShell 5 07-30-2007 04:06 AM
Call powershell script via Batch-File kr1999@gmx.de PowerShell 2 07-02-2007 10:50 AM
Hide console and capture output from script? Brian Vallelunga PowerShell 4 04-03-2007 01:43 PM


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