![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
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.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) | ||||||||||||
| Guest | Re: Copying a VBS variable in powershell? On Feb 28, 3:44*pm, baron1211 <res0e...@xxxxxx> wrote:
you should be able to capture the output of the VBS script, e.g. ps> $output = (cscript myscript.vbs) the $output variable will now be an array of strings, where each element in the array is a single line of output from the script. Using the cscript engine means that wscript.echo will output to the console instead of message boxes where it would be very hard to capture the output without resorting to dirty tricks. Hope this helps, - Oisin | ||||||||||||
My System Specs![]() | |||||||||||||
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Changing the PATH variable in the registry with Powershell | meissnersd | PowerShell | 4 | 04-25-2008 02:40 PM |
| Copying a VBS variable in powershell? | baron1211 | PowerShell | 1 | 02-28-2008 05:23 PM |
| Copying a file to c:\windows via Powershell | Nik | PowerShell | 4 | 11-06-2007 06:23 AM |
| Binding a powershell variable to the COM Object of a running application. | Mugunth | PowerShell | 5 | 05-05-2007 05:56 PM |
| How can I ensure that a variable is a built-in powershell variable? | Sung M Kim | PowerShell | 7 | 09-22-2006 06:28 PM |