Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

[?] Powershell script feed from other output script

- - - - - closed loop system

  • Please log in to reply
9 replies to this topic

#1
xtremee

xtremee

    Windows Xpire Tech Center

  • Member
  • PipPipPip
  • 455 posts
  • Joined 03-June 05

Hi all,

 

Is it possible to create a powershell script that check the output of another script for a certain generated text/ID and depend on it carry on a new task depend on the founded value?




How to remove advertisement from MSFN

#2
Yzöwl

Yzöwl

    Wise Owl

  • Super Moderator
  • 4,546 posts
  • Joined 13-October 04
  • OS:Windows 7 x64
  • Country: Country Flag

Donator

No…

 

…not unless you learn to post your question in the appropriate location on the forum and include pertinent detail to enable interested parties to attempt to help you!



#3
Tripredacus

Tripredacus

    K-Mart-ian Legend

  • Super Moderator
  • 9,921 posts
  • Joined 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Donator

Why have 2 scripts when you can have one?
MSFN RULES | GimageX HTA for PE 3-5 | lol probloms
msfn2_zpsc37c7153.jpg

#4
xtremee

xtremee

    Windows Xpire Tech Center

  • Member
  • PipPipPip
  • 455 posts
  • Joined 03-June 05

@  Yzöwl

sorry for posting in a wrong forum. I actually don't know where to post my question.

 

@ Tripredacus

One script!

Sound interesting. How can I do so?



#5
Yzöwl

Yzöwl

    Wise Owl

  • Super Moderator
  • 4,546 posts
  • Joined 13-October 04
  • OS:Windows 7 x64
  • Country: Country Flag

Donator

The script which is generating the output text/ID may be able3 to be expanded to incorporate the new requirement or be re-written to merge both tasks into a single new script.



#6
xtremee

xtremee

    Windows Xpire Tech Center

  • Member
  • PipPipPip
  • 455 posts
  • Joined 03-June 05

Sounds great but how to do that so in PowerShell?



#7
Yzöwl

Yzöwl

    Wise Owl

  • Super Moderator
  • 4,546 posts
  • Joined 13-October 04
  • OS:Windows 7 x64
  • Country: Country Flag

Donator

Because I'm feeling generous, you're going to be offered one more chance…

 

Either post the script you are using and a full explanation of its output and your intentions for its expansion into powershell or I close the Topic and any further Topics you open with the same inane ramblings.



#8
xtremee

xtremee

    Windows Xpire Tech Center

  • Member
  • PipPipPip
  • 455 posts
  • Joined 03-June 05

Actually I do not have any script right now. I have the idea and I am asking about how this can be done in PowerShell. I do know the commands that I should use to carry on such a sequence...



#9
MrJinje

MrJinje

    Tool™ Developer

  • Developer
  • 1,055 posts
  • Joined 14-October 09
  • OS:Server 2012R2
  • Country: Country Flag

Easy method write the value to a registry key or temp file, then program your second script where to look.

 



#10
xtremee

xtremee

    Windows Xpire Tech Center

  • Member
  • PipPipPip
  • 455 posts
  • Joined 03-June 05

guys my problem is:

1. Can I use PowerShell to create such a script?

2. If yes, then which commands should I use to do so?






2 user(s) are reading this topic

1 members, 0 guests, 0 anonymous users


    xtremee, Yandex (1)