Product, version and build: PowerShell Studio 2024 Version 5.8.238
Operating system: Windows 10 22h2
PowerShell version(s): 5
*** Please add details and screenshots as needed below. ***
to preface this question i want to state i know a few things about this already
1. I know you cannot pass variables into jobscripts at all as job scripts are different powershell instances all together.
2. I've called on Variables from other forms previously by using a variable by using the name of the childform and the object property name such as
$LogLocationRequest_LogFolderBox_SendMessage (this form in particular pops up a child form asks where you want to send logs to and puts that into a text box and other places in script can use that location as a variable)
my ask now is, i want to be able to call in a function like "get-logs" which will spit out a bunch of files into the location you are saving your logs to but were calling that location from the first child form. is there any possible way (i'm thinking there isn't but wanted to ask) that i can call in using that same location that we set in that first child form.
Operating system: Windows 10 22h2
PowerShell version(s): 5
*** Please add details and screenshots as needed below. ***
to preface this question i want to state i know a few things about this already
1. I know you cannot pass variables into jobscripts at all as job scripts are different powershell instances all together.
2. I've called on Variables from other forms previously by using a variable by using the name of the childform and the object property name such as
$LogLocationRequest_LogFolderBox_SendMessage (this form in particular pops up a child form asks where you want to send logs to and puts that into a text box and other places in script can use that location as a variable)
my ask now is, i want to be able to call in a function like "get-logs" which will spit out a bunch of files into the location you are saving your logs to but were calling that location from the first child form. is there any possible way (i'm thinking there isn't but wanted to ask) that i can call in using that same location that we set in that first child form.
Statistics: Posted by scott-fox1984 — Tue Apr 23, 2024 7:23 am — Replies 1 — Views 242